Prepare Cloudflare Workers/Pages deploy for the static front-end.
Add wrangler assets config, multi-page Vite build (game + studio), cache/WASM headers, and deploy scripts so `npm run deploy` publishes dist.
This commit is contained in:
@@ -0,0 +1,17 @@
|
||||
{
|
||||
"$schema": "./node_modules/wrangler/config-schema.json",
|
||||
// tilt — static front-end on Workers (assets only, no server Worker code).
|
||||
// Build first: `npm run build` → uploads `dist/`.
|
||||
"name": "tilt",
|
||||
"compatibility_date": "2026-08-03",
|
||||
"assets": {
|
||||
"directory": "./dist",
|
||||
// Multi-page site (index.html + character.html), not a client-side router SPA.
|
||||
// Missing paths return 404 rather than rewriting everything to index.html.
|
||||
"not_found_handling": "404-page",
|
||||
"html_handling": "auto-trailing-slash"
|
||||
},
|
||||
"observability": {
|
||||
"enabled": true
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user