replace Start prerender with Vite SPA
This commit is contained in:
+3
-6
@@ -2,13 +2,10 @@
|
||||
"$schema": "./node_modules/wrangler/config-schema.json",
|
||||
"name": "gig-admin",
|
||||
"compatibility_date": "2026-07-15",
|
||||
// Assets-only Worker: gig-admin is a client-rendered SPA (see vite.config.ts
|
||||
// `spa: { enabled: true }`), so there is no server to run — Cloudflare just
|
||||
// serves the static build and falls back to the SPA shell for client routes.
|
||||
// `pnpm cf:build` copies the TanStack Start shell to index.html, which
|
||||
// `single-page-application` handling serves for any non-asset request.
|
||||
// Assets-only Worker: gig-admin is a client-rendered SPA, so Cloudflare
|
||||
// serves the Vite build and falls back to index.html for client routes.
|
||||
"assets": {
|
||||
"directory": "dist/client",
|
||||
"directory": "dist",
|
||||
"not_found_handling": "single-page-application"
|
||||
},
|
||||
"observability": {
|
||||
|
||||
Reference in New Issue
Block a user