mirror of
https://github.com/tiennm99/loto.git
synced 2026-10-13 20:15:13 +00:00
913461526705a801da59e59743e0ee6c4cdc2a1e
Cloudflare Pages build failed with: Error: Cannot find module '../lightningcss.linux-x64-gnu.node' Tailwind 4 → @tailwindcss/vite → lightningcss has per-platform native binaries shipped as optional npm packages. The lockfile generated on this dev box (linux-arm64) only carried the arm64 binaries, so CF on linux-x64 was missing the matching platform-specific package. Adding lightningcss-linux-x64-gnu to optionalDependencies pins it into the lockfile. On non-x64-linux machines npm skips it silently due to the platform mismatch; CF Pages on linux-x64 will install it. Pinned to 1.32.0 to match the parent dep already resolved.
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%