Skip to content

Commit 99e5979

Browse files
committed
feat: Define routes for Cloudflare Workers in wrangler.toml
1 parent e507cb8 commit 99e5979

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

wrangler.toml

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,9 @@
33
name = "anibridge-docs"
44
main = "src/worker.ts"
55
compatibility_date = "2025-08-15"
6+
routes = [
7+
{ pattern = "anibridge-docs.zacklack.de", zone_name = "zacklack.de" }
8+
]
69

710
# Build the VitePress site under docs/ and serve the output as static assets.
811
[build]
@@ -23,11 +26,6 @@ binding = "ASSETS"
2326

2427
# By default this deploys to <name>.<your-account>.workers.dev
2528
# To use a custom domain or route, uncomment and set your zone and pattern:
26-
# routes = [
27-
# { pattern = "docs.example.com", zone_name = "example.com" },
28-
# # or a path-based route on a zone
29-
# # { pattern = "example.com/docs*", zone_name = "example.com" }
30-
# ]
3129

3230
# Optional environment overrides (example for production). Remove if unused.
3331
# [env.production]

0 commit comments

Comments
 (0)