{ // Self-hosted API + dashboard Worker. Public blog rendering is deployed separately // from wrangler.public.jsonc and shares D1/R2 with this Worker. "$schema": "node_modules/wrangler/config-schema.json", "name": "vibecms", "main": "apps/api/src/index.ts", "compatibility_date": "2026-07-13", "compatibility_flags": ["nodejs_compat"], "upload_source_maps": true, "workers_dev": true, "preview_urls": false, "observability": { "enabled": true, "logs": { "enabled": true, "invocation_logs": true }, "traces": { "enabled": true, "head_sampling_rate": 0.1 } }, "version_metadata": { "binding": "CF_VERSION_METADATA" }, "d1_databases": [ { "binding": "DB", "database_name": "vibecms", "database_id": "00000000-0000-0000-0000-000000000000", "migrations_dir": "packages/db/drizzle" } ], "r2_buckets": [ { "binding": "ASSETS_BUCKET", "bucket_name": "vibecms-media" } ], "send_email": [{ "name": "EMAIL" }], "assets": { "directory": "apps/dashboard/dist", "binding": "ASSETS", "not_found_handling": "single-page-application", "run_worker_first": ["/api/*", "/mcp", "/mcp/*", "/webhooks/*", "/media-assets/*", "/internal/*"] }, "vars": { "APP_ENV": "production", "APP_URL": "https://vibecms.example.workers.dev", "BETTER_AUTH_URL": "https://vibecms.example.workers.dev", "PUBLIC_BLOG_DOMAIN": "vibecms-public.example.workers.dev", "SELF_HOSTED": "true", "EMAIL_FROM": "vibecms ", "POLAR_SERVER": "production" } }