{ "$schema": "node_modules/wrangler/config-schema.json", "name": "web-ui", "compatibility_date": "2026-05-10", "observability": { "enabled": true }, "main": "./src/server-entry.ts", "compatibility_flags": [ "nodejs_compat" ], "env": { // Test deployment: separate Worker, separate URL, own custom domain. // Build with CLOUDFLARE_ENV=dev so the generated deploy config targets this env // (`npm run deploy:dev`). Top-level `routes` is intentionally omitted: routes are // inherited by environments, so prod domains there would also be claimed by dev. "dev": { "name": "web-ui-dev", "routes": [ { "pattern": "devwebui.freshyo.in", "custom_domain": true } ] }, // Mobile-app host: serves app.freshyo.in, including its own // /.well-known/* association files (Android App Links + iOS AASA). // Build with CLOUDFLARE_ENV=app (`npm run deploy:app`). "app": { "name": "web-ui-app", "routes": [ { "pattern": "app.freshyo.in", "custom_domain": true } ] } } }