Files
web-alterflixhub/.gitignore
T
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

46 lines
435 B
Plaintext

.react-router/
.generated/
logs
*.log
npm-debug.log*
pnpm-debug.log*
node_modules
build/
dist
dist-ssr
.output/
.netlify/
.deploy-tmp/
*.local
.vscode/*
!.vscode/extensions.json
.idea
.DS_Store
*.suo
*.ntvs*
*.njsproj
*.sln
*.sw?
.env
.env.*
!.env.example
.tmp/
**/data/
data/pglite/
data/uploads/
data/settings.json
data/.sessions.json
learnings.md
.vercel/
.agent-native/
data/*.lock
# static export (artifact)
static-export/