-
Notifications
You must be signed in to change notification settings - Fork 0
/
wrangler.toml
67 lines (47 loc) · 1.54 KB
/
wrangler.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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
##################################################
# Name: wrangler.toml
# Description: Cloudflare Workers config
##################################################
#########################
# Global
#########################
# The name of the Worker script.
name = "website-saltlabs"
# The account id that matches the worker
account_id = "6d6a8fb1f9f3f38b7374d4974c0743cf"
# Deploy to the workers.dev subdomain?
workers_dev = false
# Compatibility date for the Workers runtime.
compatibility_date = "2023-02-25"
# The entry point for your Worker.
main = "workers-site/index.js"
# Usage model for the Worker (bundled or unbound)
usage_model = "bundled"
# Send logs to the console.
logpush = false
#########################
[site]
#########################
bucket = "./public"
#include = ["upload_dir"]
#exclude = ["ignore_dir"]
#########################
[env.staging]
#########################
# The route where to use the worker
# Ref: https://developers.cloudflare.com/workers/about/routes/
routes = [
{ pattern = "staging.saltlabs.tech", custom_domain = true },
{ pattern = "staging.saltlabs.tech/*", zone_name = "saltlabs.tech" },
]
#########################
[env.production]
#########################
# The route where to use the worker
# Ref: https://developers.cloudflare.com/workers/about/routes/
routes = [
{ pattern = "www.saltlabs.tech", custom_domain = true },
{ pattern = "www.saltlabs.tech/*", zone_name = "saltlabs.tech" },
{ pattern = "saltlabs.tech", custom_domain = true },
{ pattern = "saltlabs.tech/*", zone_name = "saltlabs.tech" },
]