cloud / internal-packages / installer / wrangler.pretend.jsoncmain at aacbc74
// The wizard against a PRETEND Cloudflare (pretend/): the same page and Worker as wrangler.jsonc,
// to try every path by hand without an account, a card or a real domain.
// npx vite build && npx wrangler deploy -c wrangler.pretend.jsonc
// Every Cloudflare address below is the pretend one, and CF_SERVICE carries the calls to it. Keep
// it so: this Worker must have no way to the real api.cloudflare.com. CLIENT_SECRET is the pretend
// Cloudflare's fixed "fake-secret", not a secret. One secret, SERVICE_TOKEN: the bearer of the
// Cloud's app (worker/service.js), for a chat installation against the pretend Cloudflare.
{
"name": "domain-playground-pretend",
"account_id": "376ef7ed81b0573f93524de763666c15",
"main": "worker/pretend-main.js",
"compatibility_date": "2026-10-01",
"compatibility_flags": ["nodejs_compat"],
"workers_dev": true,
"preview_urls": false,
"assets": {
"directory": "./dist/client",
"binding": "ASSETS",
"not_found_handling": "single-page-application",
"run_worker_first": [
"/api/*",
"/connect",
"/callback",
"/logout",
"/kept",
"/service/*",
"/i/*",
],
},
"kv_namespaces": [{ "binding": "SESSIONS", "id": "cf0652bbe7094cc2a46dab515fe51d25" }],
"vars": {
"CLIENT_ID": "pretend-client",
"CLIENT_SECRET": "fake-secret",
"CF_API": "https://pretend-cloudflare.iterate-dev-preview.workers.dev/client/v4",
"CF_AUTH": "https://pretend-cloudflare.iterate-dev-preview.workers.dev/oauth2/auth",
"CF_TOKEN": "https://pretend-cloudflare.iterate-dev-preview.workers.dev/oauth2/token",
"CF_REVOKE": "https://pretend-cloudflare.iterate-dev-preview.workers.dev/oauth2/revoke",
"CF_DASH": "https://pretend-cloudflare.iterate-dev-preview.workers.dev/dash/",
"CF_SITE": "https://pretend-cloudflare.iterate-dev-preview.workers.dev",
},
"services": [{ "binding": "CF_SERVICE", "service": "pretend-cloudflare" }],
"durable_objects": { "bindings": [{ "name": "DEPLOYER", "class_name": "Deployer" }] },
"migrations": [{ "tag": "v1", "new_sqlite_classes": ["Deployer"] }],
"observability": { "enabled": true },
}