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:
ryanfitzpatrickio
2026-08-03 10:33:24 -05:00
parent dd819e991d
commit 7a196b6571
8 changed files with 1724 additions and 3 deletions
+7 -2
View File
@@ -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"
}
}