The Cloudflare project was created as a Workers Build (the new unified format), so the legacy Pages config (pages_build_output_dir, functions/api/[[path]].ts) does not deploy. Switch to the modern shape: a worker entry point that delegates to the Hono app for /api/* and falls through to the [assets] binding for everything else, with SPA fallback for client-side routes. Build output (apps/web/dist) and bindings (D1, R2, env vars) are unchanged. https://claude.ai/code/session_01TPBqgcSJMppgrpiq7fLywL
35 lines
855 B
JSON
35 lines
855 B
JSON
{
|
|
"name": "@leetete/web",
|
|
"version": "0.1.0",
|
|
"private": true,
|
|
"type": "module",
|
|
"scripts": {
|
|
"dev": "vite",
|
|
"build": "tsc --noEmit && vite build",
|
|
"preview": "vite preview",
|
|
"typecheck": "tsc --noEmit",
|
|
"deploy": "wrangler deploy",
|
|
"pages:dev": "wrangler dev"
|
|
},
|
|
"dependencies": {
|
|
"@leetete/api": "workspace:*",
|
|
"@leetete/shared": "workspace:*",
|
|
"react": "^18.3.1",
|
|
"react-dom": "^18.3.1",
|
|
"react-router-dom": "^6.28.0",
|
|
"zod": "^3.23.8"
|
|
},
|
|
"devDependencies": {
|
|
"@cloudflare/workers-types": "^4.20241218.0",
|
|
"@types/react": "^18.3.12",
|
|
"@types/react-dom": "^18.3.1",
|
|
"@vitejs/plugin-react": "^4.3.4",
|
|
"autoprefixer": "^10.4.20",
|
|
"postcss": "^8.4.49",
|
|
"tailwindcss": "^3.4.17",
|
|
"typescript": "^5.6.3",
|
|
"vite": "^5.4.11",
|
|
"wrangler": "^3.95.0"
|
|
}
|
|
}
|