mirror of
https://github.com/tiennm99/loto.git
synced 2026-10-14 00:16:47 +00:00
10c0bf85f36427e8f47ab91b3b3e5f7bae2c9518
Replace the full build+publish flow with a tiny inline shell step that emits two static HTML pages (out/index.html and out/master/index.html). Each one carries: <meta http-equiv="refresh" content="0; url=https://loto.miti99.com/"> <script>location.replace("https://loto.miti99.com" + ...)</script> The script preserves path / query / hash, so /loto/ → loto.miti99.com/ /loto/master → loto.miti99.com/master /loto/?x=1 → loto.miti99.com/?x=1 Cloudflare Pages stays canonical; this change just stops GH Pages from serving a stale duplicate of the app and points old links at the live domain instead. The build:gh npm script is kept as a manual escape hatch for the rare case where someone wants to deploy a real GH Pages copy by hand.
Lô tô
Bàn số của trò chơi "Lô tô" — SvelteKit app.
Two routes: / 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 architecture, code standards, and deployment.
Development
npm install
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 the SvelteKit base path.
Build
npm run build # default — root basePath, for Cloudflare Pages
npm run build:gh # /loto basePath, for tiennm99.github.io/loto manual export
Static export to build/. Deployed to Cloudflare Pages from main
(set up via the CF dashboard — see docs/deployment-guide.md).
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%