Skip to content
This repository was archived by the owner on Mar 18, 2026. It is now read-only.

Commit a312b70

Browse files
committed
feat: Add multi-environment support with dynamic domain routing
1 parent 056efe1 commit a312b70

1 file changed

Lines changed: 10 additions & 0 deletions

File tree

wrangler.toml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,16 @@ name = "aibtcdev-cache"
33
main = "src/index.ts"
44
compatibility_date = "2024-11-09"
55
account_id = "96280594e2b905d4dc40b3c744149710"
6+
# Default environment (preview)
7+
[env.preview]
8+
routes = []
9+
10+
# Staging environment
11+
[env.staging]
12+
routes = [{ pattern = "cache-staging.aibtc.dev", custom_domain = true }]
13+
14+
# Production environment
15+
[env.production]
616
routes = [{ pattern = "cache.aibtc.dev", custom_domain = true }]
717

818
# Workers Logs

0 commit comments

Comments
 (0)