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:
+7
-2
@@ -12,7 +12,11 @@
|
||||
"capture": "node tools/capture.mjs",
|
||||
"img2mesh": "node tools/img2mesh.mjs",
|
||||
"img2mesh:player": "node tools/img2mesh.mjs --subject player",
|
||||
"img2mesh:goalie": "node tools/img2mesh.mjs --subject goalie"
|
||||
"img2mesh:goalie": "node tools/img2mesh.mjs --subject goalie",
|
||||
"deploy": "npm run build && wrangler deploy",
|
||||
"deploy:dry": "npm run build && wrangler deploy --dry-run",
|
||||
"pages:deploy": "npm run build && wrangler pages deploy dist --project-name=tilt",
|
||||
"cf:whoami": "wrangler whoami"
|
||||
},
|
||||
"dependencies": {
|
||||
"box3d.js": "^0.0.2",
|
||||
@@ -20,6 +24,7 @@
|
||||
},
|
||||
"devDependencies": {
|
||||
"puppeteer-core": "^25.4.0",
|
||||
"vite": "^8.1.5"
|
||||
"vite": "^8.1.5",
|
||||
"wrangler": "^4.118.0"
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user