Commit Graph
4 Commits
Author SHA1 Message Date
Bkk1234 0426b8e953 chore(repo): add .gitignore for secrets/data + bump sw.js VERSION to v2.1.1
Ignore credential and private-key files, the real content data directory
(data/ holds phone numbers, emails, addresses), backups/logs that can carry
that data, plus build/dependency artifacts for future source work.
No tracked file matches a new rule; published export files stay tracked.
Bump sw.js VERSION to v2.1.1 so the cache-first /assets/ rule refreshes.
2026-11-22 22:34:54 +07:00
Bkk1234 e6c4ebff48 chore(publish): replace source tree with static export at repo root
Publish the prerendered static export (index.html, 404.html, cinema/,
c/, about/, for-cinemas/, for-film-lovers/, assets/, images/, og/,
sitemap.xml, robots.txt) as the site root and remove the React Router
+ Nitro source tree from this branch. Source remains available in
history at 0548772.

Note: public/sw.js here reports VERSION v2.0.5 while the removed source
tree (v2.1.0) was newer, and .gitignore was not carried over.
2026-11-22 22:24:36 +07:00
Bkk1234 1c38d8e286 feat(build): static export (index.html ต่อหน้า) สำหรับโฮสต์แบบไฟล์นิ่ง
- scripts/static-export.mjs: ดึง HTML ทุกหน้าจาก production server มาเป็นไฟล์นิ่ง
  · index.html, about/, for-cinemas/, for-film-lovers/, cinema/<slug>/ (ทุกโรงที่ไม่ hidden)
  · c/<slug>/ = หน้า redirect แบบ meta refresh + JS
  · คัดลอก .output/public (assets, รูป, manifest, sw, sitemap, robots) + 404.html
  · อ่าน slug จาก data/content/content.json (การ์ดหน้าแรก render ฝั่ง client จึงไม่มี link ใน HTML)
  · inject data-static-export-nav: ดักคลิก link ภายในเป็น full page load
    (static host ไม่มี endpoint ?_data= ของ React Router)
- package.json: script "export:static" · .gitignore: static-export/
- README: วิธี build/export/ทดสอบ + ข้อจำกัด (ไม่มี /admin, /api, 302, meta อบตอน export)
2026-11-21 15:10:13 +07:00
Bkk1234 1e84023a44 reboot alterflixhub 2026-11-01 17:24:44 +07:00