Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,15 @@ jobs:
steps:
- name: Git Checkout
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683

- name: Setup Node
uses: actions/setup-node@v4
with:
node-version: lts/*
cache: 'npm'

- name: Install Dependencies
run: npm install

- name: Deploy to Staging
if: github.event_name == 'push'
Expand Down
61 changes: 61 additions & 0 deletions wrangler.jsonc
Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@
{
"$schema": "node_modules/wrangler/config-schema.json",
"name": "dist-worker",
"main": "src/worker.ts",
"compatibility_date": "2024-09-05",
"account_id": "07be8d2fbc940503ca1be344714cb0d1",
"logpush": true,
"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"
}
],
"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"
},
"r2_buckets": [
{
"binding": "R2_BUCKET",
"preview_bucket_name": "dist-prod",
"bucket_name": "dist-prod"
}
]
},
"prod": {
"tail_consumers": [
{
"service": "dist-worker-prod-tail"
}
],
"vars": {
"workers_dev": false,
"ENVIRONMENT": "prod",
"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"
}
]
}
}
}
48 changes: 0 additions & 48 deletions wrangler.toml

This file was deleted.

Loading