Skip to content

Commit b9a0718

Browse files
committed
Reapply "Migrate wrangler.toml to wrangler.jsonc" (#339)
This reverts commit 4a13ed4.
1 parent 4a13ed4 commit b9a0718

File tree

3 files changed

+70
-48
lines changed

3 files changed

+70
-48
lines changed

.github/workflows/deploy.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,15 @@ jobs:
1515
steps:
1616
- name: Git Checkout
1717
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683
18+
19+
- name: Setup Node
20+
uses: actions/setup-node@v4
21+
with:
22+
node-version: lts/*
23+
cache: 'npm'
24+
25+
- name: Install Dependencies
26+
run: npm install
1827

1928
- name: Deploy to Staging
2029
if: github.event_name == 'push'

wrangler.jsonc

Lines changed: 61 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,61 @@
1+
{
2+
"$schema": "node_modules/wrangler/config-schema.json",
3+
"name": "dist-worker",
4+
"main": "src/worker.ts",
5+
"compatibility_date": "2024-09-05",
6+
"account_id": "07be8d2fbc940503ca1be344714cb0d1",
7+
"logpush": true,
8+
"vars": {
9+
"workers_dev": true,
10+
"ENVIRONMENT": "dev",
11+
"S3_ENDPOINT": "https://07be8d2fbc940503ca1be344714cb0d1.r2.cloudflarestorage.com",
12+
"BUCKET_NAME": "dist-prod",
13+
"ORIGIN_HOST": "https://origin.nodejs.org"
14+
},
15+
"r2_buckets": [
16+
{
17+
"binding": "R2_BUCKET",
18+
"preview_bucket_name": "dist-prod",
19+
"bucket_name": "dist-prod"
20+
}
21+
],
22+
"env": {
23+
"staging": {
24+
"vars": {
25+
"workers_dev": true,
26+
"ENVIRONMENT": "staging",
27+
"S3_ENDPOINT": "https://07be8d2fbc940503ca1be344714cb0d1.r2.cloudflarestorage.com",
28+
"BUCKET_NAME": "dist-prod",
29+
"ORIGIN_HOST": "https://origin.nodejs.org"
30+
},
31+
"r2_buckets": [
32+
{
33+
"binding": "R2_BUCKET",
34+
"preview_bucket_name": "dist-prod",
35+
"bucket_name": "dist-prod"
36+
}
37+
]
38+
},
39+
"prod": {
40+
"tail_consumers": [
41+
{
42+
"service": "dist-worker-prod-tail"
43+
}
44+
],
45+
"vars": {
46+
"workers_dev": false,
47+
"ENVIRONMENT": "prod",
48+
"S3_ENDPOINT": "https://07be8d2fbc940503ca1be344714cb0d1.r2.cloudflarestorage.com",
49+
"BUCKET_NAME": "dist-prod",
50+
"ORIGIN_HOST": "https://origin.nodejs.org"
51+
},
52+
"r2_buckets": [
53+
{
54+
"binding": "R2_BUCKET",
55+
"preview_bucket_name": "dist-prod",
56+
"bucket_name": "dist-prod"
57+
}
58+
]
59+
}
60+
}
61+
}

wrangler.toml

Lines changed: 0 additions & 48 deletions
This file was deleted.

0 commit comments

Comments
 (0)