-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathwrangler.toml
34 lines (27 loc) · 976 Bytes
/
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
main = "src/routes/index.ts"
compatibility_date = "2024-08-15"
compatibility_flags = ["nodejs_compat"]
workers_dev = false
[env.production]
name = "foo"
routes = [{ pattern = "foobar.rustymagnet.xyz", custom_domain = true }]
# serves static folder
assets = { directory = "./public/static", binding = "ASSETS" }
[env.production.vars]
SECURITY_HEADER_NAME = "X-Header"
SIGNING_ALGORITHM = "HS256"
ENVIRONMENT= "prod"
# `wrangler dev --env=testing` picks up variables in this section
# NOTE [vars] is a non-inheritable key so not usuable when using environment specific
# values in the .devs.vars override these values. Useful default for CI/CD tests
# local test uses .devs.vars file. CI/CD uses the values inside [env.testing.vars] as no .devs.vars file in source control
[env.testing.vars]
SECURITY_HEADER_NAME = "X-Header"
SECRET_KEY = "dummy"
SIGNING_ALGORITHM = "HS256"
ENVIRONMENT = "TESTING"
[dev]
port = 8787
local_protocol = "http"
[observability]
enabled = true