{
   "$schema": "node_modules/wrangler/config-schema.json",
   "name": "cloudflare-vite-fullstack-bknd",
   "main": "./src/worker/index.ts",
   "compatibility_date": "2025-10-08",
   "compatibility_flags": ["nodejs_compat"],
   "observability": {
      "enabled": true
   },
   "upload_source_maps": true,
   "assets": {
      "binding": "ASSETS",
      "directory": "./dist/client",
      "not_found_handling": "single-page-application",
      "run_worker_first": ["/api*", "!/assets/*"]
   },
   "vars": {
      "ENVIRONMENT": "development"
   },
   "d1_databases": [
      {
         "binding": "DB"
      }
   ],
   "r2_buckets": [
      {
         "binding": "BUCKET"
      }
   ],
   "env": {
      "production": {
         "vars": {
            "ENVIRONMENT": "production"
         },
         "d1_databases": [
            {
               "binding": "DB"
            }
         ],
         "r2_buckets": [
            {
               "binding": "BUCKET"
            }
         ]
      }
   }
}
