-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathwrangler.toml.example
31 lines (29 loc) · 1.03 KB
/
wrangler.toml.example
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
main = "src/index.js"
account_id = "<YOUR_CLOUDFLARE_ACCOUNT_ID>"
compatibility_date = "2022-10-25"
name = "seastats-api-dev"
workers_dev = true
vars = { ENVIRONMENT = "dev", CLIENT_URL = "https://your-dev-client-url.example.com/" }
kv_namespaces = [
{ binding = "CACHED_DATA", id = "<YOUR_DEV_STATION_DATA_KV_NAMESPACE_ID>", preview_id = "<YOUR_DEV_STATION_DATA_KV_NAMESPACE_ID>" }
]
r2_buckets = [
{ binding = "SOURCE_DATA", bucket_name = "seastats-api-dev", preview_bucket_name = "seastats-api-dev" }
]
#services = [
# { binding = "SELF", service = "seastats-api-dev" }
#]
[env.production]
name = "seastats-api-prod"
workers_dev = false
route = "<YOUR_DOMAIN>/*"
vars = { ENVIRONMENT = "production", CLIENT_URL = "https://your-client-url.example.com/", SENTRY_DSN = "<YOUR_SENTRY_DSN>" }
kv_namespaces = [
{ binding = "CACHED_DATA", id = "<YOUR_PROD_STATION_DATA_KV_NAMESPACE_ID>" }
]
r2_buckets = [
{ binding = "SOURCE_DATA", bucket_name = "seastats-api-prod" }
]
#services = [
# { binding = "SELF", service = "seastats-api-prod" }
#]