Files
web-alterflixhub/package.json
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

127 lines
4.2 KiB
JSON

{
"name": "app",
"displayName": "App",
"private": true,
"description": "Minimal Agent-Native app.",
"type": "module",
"scripts": {
"migrate:production": "tsx scripts/migrate-production.ts && pnpm db:migrate",
"dev": "agent-native dev",
"build": "agent-native build",
"export:static": "node scripts/static-export.mjs",
"start": "agent-native start",
"typecheck": "agent-native typecheck",
"action": "agent-native action",
"script": "agent-native script",
"test": "vitest --run --passWithNoTests",
"db:generate": "drizzle-kit generate",
"db:migrate": "agent-native db-migrate",
"agent-native:doctor": "agent-native doctor"
},
"dependencies": {
"@agent-native/agentkit": "^0.220.0",
"@agent-native/core": "0.220.0",
"@agent-native/otel": "latest",
"@agent-native/toolkit": "^0.220.0",
"@ai-sdk/anthropic": "^3.0.71",
"@ai-sdk/cohere": "^3.0.39",
"@ai-sdk/google": "^3.0.64",
"@ai-sdk/groq": "^3.0.35",
"@ai-sdk/mistral": "^3.0.40",
"@ai-sdk/openai": "^3.0.53",
"@electric-sql/pglite": "^0.5.8",
"@fontsource-variable/inter": "^5.2.8",
"@fontsource/ibm-plex-sans-thai-looped": "^5.3.0",
"@neondatabase/serverless": "^1.0.2",
"@openrouter/ai-sdk-provider": "^2.9.1",
"@react-router/dev": "8.1.0",
"@react-router/fs-routes": "8.1.0",
"@tabler/icons-react": "3.44.0",
"@tanstack/react-query": "^5.99.2",
"ai": "6.0.258",
"ai-sdk-ollama": "^3.8.8",
"dotenv": "^17.2.1",
"drizzle-orm": "0.45.2",
"h3": "^2.0.1",
"isbot": "^5",
"node-pty": "^1.1.0",
"postgres": "^3.4.9",
"react": "^19.2.7",
"react-dom": "^19.2.7",
"react-router": "8.1.0",
"use-sync-external-store": "^1.6.0",
"vite": "8.1.0",
"zod": "^4.4.3",
"zustand": "^5.0.15"
},
"devDependencies": {
"@radix-ui/react-accordion": "^1.2.12",
"@radix-ui/react-alert-dialog": "^1.1.15",
"@radix-ui/react-aspect-ratio": "^1.1.8",
"@radix-ui/react-avatar": "^1.1.11",
"@radix-ui/react-checkbox": "^1.3.2",
"@radix-ui/react-collapsible": "^1.1.12",
"@radix-ui/react-context-menu": "^2.2.16",
"@radix-ui/react-dialog": "^1.1.14",
"@radix-ui/react-dropdown-menu": "^2.1.15",
"@radix-ui/react-hover-card": "^1.1.15",
"@radix-ui/react-label": "^2.1.7",
"@radix-ui/react-menubar": "^1.1.16",
"@radix-ui/react-navigation-menu": "^1.2.14",
"@radix-ui/react-popover": "^1.1.14",
"@radix-ui/react-progress": "^1.1.8",
"@radix-ui/react-radio-group": "^1.3.7",
"@radix-ui/react-scroll-area": "^1.2.9",
"@radix-ui/react-select": "^2.2.5",
"@radix-ui/react-separator": "^1.1.7",
"@radix-ui/react-slider": "^1.3.5",
"@radix-ui/react-slot": "^1.2.3",
"@radix-ui/react-switch": "^1.2.5",
"@radix-ui/react-tabs": "^1.1.12",
"@radix-ui/react-toast": "^1.2.15",
"@radix-ui/react-toggle": "^1.1.10",
"@radix-ui/react-toggle-group": "^1.1.11",
"@radix-ui/react-tooltip": "^1.2.7",
"@tailwindcss/typography": "^0.5.20",
"@tailwindcss/vite": "^4.2.4",
"@types/node": "^24.2.1",
"@types/react": "^19.2.14",
"@types/react-dom": "^19.2.3",
"@xterm/addon-fit": "^0.11.0",
"@xterm/addon-web-links": "^0.12.0",
"@xterm/xterm": "^6.0.0",
"class-variance-authority": "^0.7.1",
"clsx": "^2.1.1",
"cmdk": "^1.1.1",
"drizzle-kit": "0.31.9",
"embla-carousel-react": "^8.6.0",
"input-otp": "^1.4.2",
"next-themes": "^0.4.6",
"oxfmt": "0.56.0",
"react-day-picker": "^9.14.0",
"react-hook-form": "^7.71.2",
"react-resizable-panels": "^4.10.0",
"sonner": "^2.0.7",
"tailwind-merge": "^3.5.0",
"tailwindcss": "^4.2.4",
"tsx": "^4.20.3",
"typescript-7": "npm:typescript@^7.0.2",
"vaul": "^1.1.2",
"vitest": "^4.1.5"
},
"engines": {
"node": ">=22.22.0"
},
"packageManager": "[email protected]+sha512.ad27a79641b49c3e481a16a805baa71817a04bbe06a38d17e60e2eaee83f6a146c6a688125f5792e48dd5ba30e7da52a5cda4c3992b9ccf333f9ce223af84748",
"agent-native": {
"scaffold": {
"template": "builder-code-starter",
"frameworkSkills": "default",
"templateRef": "@agent-native/[email protected]",
"templateSource": "bundled",
"coreVersion": "0.220.0",
"shape": "standalone"
}
}
}