mirror of
https://github.com/tiennm99/loto.git
synced 2026-10-19 18:15:52 +00:00
ci(deploy): switch from Cloudflare Pages to GitHub Pages
Migrate build and deployment pipeline from Cloudflare Pages to GitHub Pages. Adds production-ready deploy workflow in deploy-github-pages.yml with proper artifact handling. Removes Cloudflare-specific tooling: wrangler config, _headers, _redirects, and CSP hash injection scripts (no longer needed with GitHub Pages static hosting). Updates package.json build scripts and all project documentation to reflect new deployment target and simplified architecture.
This commit is contained in:
1 parent
a06cbd2675
commit
8fc3ec6ebd
20 files changed
+385
-301
No files matched your search
@@ -68,20 +68,13 @@ All keys are JSON stringified. Corruption is silent (returns null).
|
||||
|
||||
## basePath & Asset Resolution
|
||||
|
||||
### Production (Cloudflare Pages, default)
|
||||
```
|
||||
npm run build
|
||||
basePath="" (root)
|
||||
Output: build/index.html
|
||||
Deploy: loto.miti99.com (root domain)
|
||||
```
|
||||
|
||||
### Production (GitHub Pages, manual)
|
||||
### Production (GitHub Pages, canonical)
|
||||
```
|
||||
npm run build:gh
|
||||
basePath="/loto"
|
||||
Output: build/index.html with /loto prefix
|
||||
Deploy: https://tiennm99.github.io/loto
|
||||
Deploy: https://tiennm99.github.io/loto/
|
||||
Workflow: .github/workflows/deploy-github-pages.yml
|
||||
```
|
||||
|
||||
### Development (Local)
|
||||
@@ -199,5 +192,5 @@ Each draw creates a new object (even repeat numbers) to ensure reactive re-fire.
|
||||
3. User installs → app appears on home screen, launches in standalone mode
|
||||
4. Updates: SW checks for new version; if found, toast appears; user can reload
|
||||
|
||||
Last reviewed: 2026-04-27
|
||||
Last synced: 2026-04-27 (UI polish v2 + PWA: font, mode picker, color picker, empty state, PWA stack)
|
||||
Last reviewed: 2026-05-09
|
||||
Last synced: 2026-05-09 (Cloudflare Pages removed; GitHub Pages is the sole production target)
|
||||
Reference in new issue
Block a user