tiennm99 b4a877afdf refactor: cf-only deploy via dashboard, drop gh actions
- Default `npm run build` now produces a root-relative build (CF Pages
  custom domain at loto.miti99.com). The /loto basePath is opt-in via
  `npm run build:gh` for the rare manual GH Pages export.
- Removed both GitHub Actions deploy workflows (.github/workflows/) and
  the dangling `build:cf` script (it was identical to `build` after the
  default flip).
- next.config.mjs: simplified basePath logic — only `BUILD_PROFILE=gh`
  toggles a non-empty path; everything else (CF, local dev) is root.
2026-04-26 20:32:04 +07:00
2026-04-26 19:16:46 +07:00

Lô tô

Bàn số của trò chơi "Lô tô" — Next.js app.

Two pages: / for players, /master for the host (quản trò) — calls numbers, shows a tracking board, and has its own player card to play along.

See docs/ for project overview, architecture, code standards, and deployment.

Development

npm run dev

Inside code-server (reverse proxy)

cp .env.example .env.local
# edit .env.local: set CODESERVER_HOST and CODESERVER_PORT
npm run dev:codeserver

Open https://<CODESERVER_HOST>/absproxy/<CODESERVER_PORT>/.

Use /absproxy/{port}/, not /proxy/{port}/ — the latter strips the path prefix and breaks Next's basePath. HMR may not survive the proxy; refresh manually if it disconnects.

Build

npm run build

Static export to out/. Deployed to Cloudflare Pages from master (set up via the CF dashboard — see docs/deployment-guide.md).

S
Description
Lô Tô (Vietnamese lottery bingo) number board — Next.js web app
Readme
3.7 MiB
Languages
TypeScript 89.9%
CSS 8%
JavaScript 2.1%