mirror of
https://github.com/tiennm99/loto.git
synced 2026-09-10 04:19:58 +00:00
b4a877afdf965cc0bcd3bfdfb6275db1b04384d3
- 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.
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).
Languages
TypeScript
89.9%
CSS
8%
JavaScript
2.1%