-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
wrangler-sample.toml
32 lines (29 loc) · 992 Bytes
/
wrangler-sample.toml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
name = "branded-short-links"
main = "src/index.ts"
compatibility_date = "2024-03-12"
############
## Routes ##
############
routes = [
{ pattern = "examp.le", custom_domain = true },
{ pattern = "www.examp.le", custom_domain = true },
]
#################
## Vars: Links ##
#################
[vars.links]
fallback_url = "https://www.example.com"
items = [
{ shortcode = "/url-1", http_response = 301, redirect_url = "https://www.new-site.com/url-1" },
{ shortcode = "/url-2", http_response = 302, redirect_url = "https://www.new-site.com/url-2" },
{ shortcode = "/url-3", http_response = 303, redirect_url = "https://www.new-site.com/url-3" },
{ shortcode = "/url-4", http_response = 307, redirect_url = "https://www.new-site.com/url-4" },
{ shortcode = "/url-5", http_response = 308, redirect_url = "https://www.new-site.com/url-5" },
]
####################
## Vars: Settings ##
####################
[vars.settings]
debug_mode = true
force_https = true
gtm_container_id = ""