Skip to content

Commit 5f44cb9

Browse files
iamjr15claude
andcommitted
feat: enable custom domain route for preview proxy
- Enable workers_dev subdomain for fallback access - Configure custom domain route for preview.trycheatcode.com - DNS now managed by Cloudflare with free DDoS/WAF protection 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <[email protected]>
1 parent 65f4b1e commit 5f44cb9

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

preview-worker/wrangler.toml

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,13 @@ name = "cheatcode-preview-proxy"
22
main = "src/index.ts"
33
compatibility_date = "2024-01-01"
44

5-
# Custom domain will be configured after deployment
6-
# routes = [
7-
# { pattern = "preview.trycheatcode.com/*", zone_name = "trycheatcode.com" }
8-
# ]
5+
# Enable workers.dev subdomain
6+
workers_dev = true
7+
8+
# Custom domain route
9+
routes = [
10+
{ pattern = "preview.trycheatcode.com/*", zone_name = "trycheatcode.com" }
11+
]
912

1013
[observability]
1114
enabled = true

0 commit comments

Comments
 (0)