mirror of
https://github.com/tiennm99/loto.git
synced 2026-10-13 20:15:13 +00:00
0916f7706fd2eec530fdf429b7c10c672281d117
next.config.mjs now detects CF_PAGES=1 (auto-injected by Cloudflare during build) and switches basePath from /loto to "" — assets resolve at the project root on loto.pages.dev. GH Pages keeps /loto unchanged. New workflow .github/workflows/deploy-cloudflare-pages.yml mirrors the GH Pages flow but publishes via cloudflare/wrangler-action@v3. Requires repo secrets CLOUDFLARE_API_TOKEN and CLOUDFLARE_ACCOUNT_ID; project name "loto" is hardcoded — adjust --project-name= in the workflow if your CF Pages project uses a different name. Dashboard-based deploys also work without code changes thanks to the CF_PAGES detection. See docs/deployment-guide.md for both paths.
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 GitHub Pages from master via .github/workflows/deploy.yml.
Description
Lô Tô (Vietnamese lottery bingo) number board — Next.js web app
Readme
4.1 MiB
0 Stars
1 Watchers
0 Forks
Languages
TypeScript
89.9%
CSS
8%
JavaScript
2.1%