{
  "$schema": "node_modules/wrangler/config-schema.json",
  "main": ".open-next/worker.js",
  "name": "geo-agent-article-optimizer",
  "compatibility_date": "2026-06-16",
  "compatibility_flags": ["nodejs_compat", "global_fetch_strictly_public"],
  "assets": {
    "directory": ".open-next/assets",
    "binding": "ASSETS"
  },
  "observability": {
    "enabled": true,
    "head_sampling_rate": 0.1
  },
  "services": [
    {
      "binding": "WORKER_SELF_REFERENCE",
      "service": "geo-agent-article-optimizer"
    }
  ],
  "vars": {
    "APP_RUNTIME": "cloudflare",
    "LLM_PROVIDER": "deepseek",
    "DEEPSEEK_BASE_URL": "https://api.deepseek.com",
    "DEEPSEEK_MODEL": "deepseek-v4-pro",
    "DEEPSEEK_THINKING": "disabled",
    "OPENAI_MODEL": "gpt-4.1-mini"
  },
  "d1_databases": [
    {
      "binding": "DB",
      "database_name": "geo-agent-article-optimizer-local",
      "database_id": "00000000-0000-0000-0000-000000000001",
      "migrations_dir": "migrations"
    }
  ],
  "r2_buckets": [
    {
      "binding": "EXPORT_BUCKET",
      "bucket_name": "geo-agent-article-optimizer-local"
    }
  ],
  "env": {
    "staging": {
      "name": "geo-agent-article-optimizer-staging",
      "services": [
        {
          "binding": "WORKER_SELF_REFERENCE",
          "service": "geo-agent-article-optimizer-staging"
        }
      ],
      "vars": {
        "APP_RUNTIME": "cloudflare",
        "LLM_PROVIDER": "deepseek",
        "DEEPSEEK_BASE_URL": "https://api.deepseek.com",
        "DEEPSEEK_MODEL": "deepseek-v4-pro",
        "DEEPSEEK_THINKING": "disabled",
        "OPENAI_MODEL": "gpt-4.1-mini"
      },
      "d1_databases": [
        {
          "binding": "DB",
          "database_name": "geo-agent-article-optimizer-staging",
          "database_id": "0162e94c-9f71-472c-ae78-13786578a2ac",
          "migrations_dir": "migrations"
        }
      ],
      "r2_buckets": [
        {
          "binding": "EXPORT_BUCKET",
          "bucket_name": "geo-agent-article-optimizer-staging"
        }
      ]
    },
    "production": {
      "name": "geo-agent-article-optimizer-production",
      "services": [
        {
          "binding": "WORKER_SELF_REFERENCE",
          "service": "geo-agent-article-optimizer-production"
        }
      ],
      "vars": {
        "APP_RUNTIME": "cloudflare",
        "LLM_PROVIDER": "deepseek",
        "DEEPSEEK_BASE_URL": "https://api.deepseek.com",
        "DEEPSEEK_MODEL": "deepseek-v4-pro",
        "DEEPSEEK_THINKING": "disabled",
        "OPENAI_MODEL": "gpt-4.1-mini"
      },
      "d1_databases": [
        {
          "binding": "DB",
          "database_name": "geo-agent-article-optimizer-production",
          "database_id": "8161ceeb-76c6-40fd-9f38-32ec7ab8f2b1",
          "migrations_dir": "migrations"
        }
      ],
      "r2_buckets": [
        {
          "binding": "EXPORT_BUCKET",
          "bucket_name": "geo-agent-article-optimizer-production"
        }
      ]
    }
  }
}
