# Example wrangler config. Replace the placeholders, then: # npx wrangler secret put PREBAKED_TOKEN # npx wrangler deploy name = "prebaked" main = "src/worker.ts" compatibility_date = "2026-07-30" # Run the Worker in front of your site (the zone must be on Cloudflare). routes = [{ pattern = "www./*", zone_name = "" }] [vars] PREBAKED_SERVICE_URL = "https://service.prebaked.io/" # Test mode (README.md): "shadow", "ai" or "all". Unset: the mode set in the Prebaked dashboard. # In "shadow" mode requests go on to your origin untouched; Prebaked only gets a background copy. # PREBAKED_MODE = "shadow"