{
  "$schema": "./node_modules/wrangler/config-schema.json",
  "name": "nanocodex",
  "compatibility_date": "2026-05-22",
  "compatibility_flags": ["nodejs_compat"],
  "main": "./worker/index.ts",
  "workers_dev": false,
  "preview_urls": true,
  "keep_vars": true,
  "observability": {
    "enabled": true,
    "logs": {
      "enabled": true,
      "head_sampling_rate": 1,
      "invocation_logs": true,
      "persist": true
    }
  },
  "assets": {
    "not_found_handling": "single-page-application",
    "run_worker_first": ["/api/*"]
  },
  "vars": {
    "ENVIRONMENT": "development"
  },
  "env": {
    "preview": {
      "name": "nanocodex-preview",
      "workers_dev": true,
      "routes": [],
      "vars": {
        "ENVIRONMENT": "preview"
      }
    }
  }
}
