-
Notifications
You must be signed in to change notification settings - Fork 7
/
wrangler.toml
48 lines (41 loc) · 1.16 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
name = 'dist-worker'
main = 'src/worker.ts'
compatibility_date = '2024-09-05'
account_id = '07be8d2fbc940503ca1be344714cb0d1'
logpush = true
# Dev (default)
[vars]
workers_dev = true
ENVIRONMENT = 'dev'
S3_ENDPOINT = 'https://07be8d2fbc940503ca1be344714cb0d1.r2.cloudflarestorage.com'
BUCKET_NAME = 'dist-prod'
ORIGIN_HOST = 'https://origin.nodejs.org'
[[r2_buckets]]
binding = 'R2_BUCKET'
preview_bucket_name = 'dist-prod'
bucket_name = 'dist-prod'
# Staging
[env.staging]
[env.staging.vars]
workers_dev = true
ENVIRONMENT = 'staging'
S3_ENDPOINT = 'https://07be8d2fbc940503ca1be344714cb0d1.r2.cloudflarestorage.com'
BUCKET_NAME = 'dist-prod'
ORIGIN_HOST = 'https://origin.nodejs.org'
[[env.staging.r2_buckets]]
binding = 'R2_BUCKET'
preview_bucket_name = 'dist-prod'
bucket_name = 'dist-prod'
# Prod
[env.prod]
tail_consumers = [{ service = "dist-worker-prod-tail" }]
[env.prod.vars]
workers_dev = false
ENVIRONMENT = 'prod'
S3_ENDPOINT = 'https://07be8d2fbc940503ca1be344714cb0d1.r2.cloudflarestorage.com'
BUCKET_NAME='dist-prod'
ORIGIN_HOST = 'https://origin.nodejs.org'
[[env.prod.r2_buckets]]
binding = 'R2_BUCKET'
preview_bucket_name = 'dist-prod'
bucket_name = 'dist-prod'