// Deploys the built Vite app (dist/) as an assets-only Cloudflare Worker. // No server-side code — this is purely static hosting for app.diagrav.com. // Build first (with production VITE_* env vars baked in), then: // npx wrangler deploy --config wrangler.app.jsonc { "$schema": "./node_modules/wrangler/config-schema.json", "name": "diagrav-app", "compatibility_date": "2026-09-25", "assets": { "directory": "./dist", "not_found_handling": "single-page-application" }, "routes": [ { "pattern": "app.diagrav.com", "custom_domain": true } ] }