Skip to content
Draft
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
14 changes: 12 additions & 2 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,12 +21,22 @@ jobs:
uses: cloudflare/wrangler-action@7a5f8bbdfeedcde38e6777a50fe685f89259d4ca
with:
apiToken: ${{ secrets.CF_API_TOKEN }}
command: deploy --env staging
command: deploy --env staging --outdir=

- name: Upload sourcemaps for dist-worker-staging
if: github.event_name == 'push'
runs: |
npm run sentry:sourcemaps:staging

- name: Deploy to Production
if: github.event_name == 'workflow_dispatch'
uses: cloudflare/wrangler-action@7a5f8bbdfeedcde38e6777a50fe685f89259d4ca
with:
apiToken: ${{ secrets.CF_API_TOKEN }}
command: deploy --env prod
command: deploy --env prod --outdir=dist

- name: Upload sourcemaps for dist-worker-prod
if: github.event_name == 'workflow_dispatch'
runs: |
npm run sentry:sourcemaps:prod

3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,6 @@ node_modules/
.wrangler/
dist/
.dev.vars

# Sentry Config File
.sentryclirc
235 changes: 229 additions & 6 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 4 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,9 @@
"test": "npm run test:unit && npm run test:e2e",
"test:unit": "node --test --test-reporter=@reporters/github --test-reporter-destination=stdout --test-reporter=spec --test-reporter-destination=stdout --import=tsx ./tests/unit/index.test.ts",
"test:e2e": "wrangler deploy --dry-run --outdir=dist && node --test --test-reporter=@reporters/github --test-reporter-destination=stdout --test-reporter=spec --test-reporter-destination=stdout --import=tsx ./tests/e2e/index.test.ts",
"build:handlebars": "node scripts/compile-handlebars.js"
"build:handlebars": "node scripts/compile-handlebars.js",
"sentry:sourcemaps:staging": "sentry-cli sourcemaps inject --org nodejs --project dist-worker-staging ./dist && sentry-cli sourcemaps upload --org nodejs --project dist-worker-staging ./dist",
"sentry:sourcemaps:prod": "sentry-cli sourcemaps inject --org nodejs --project dist-worker-prod ./dist && sentry-cli sourcemaps upload --org nodejs --project dist-worker-prod ./dist"
},
"devDependencies": {
"@cloudflare/workers-types": "^4.20250124.3",
Expand All @@ -35,6 +37,7 @@
},
"dependencies": {
"@aws-sdk/client-s3": "^3.717.0",
"@sentry/cli": "^2.41.1",
"handlebars": "^4.7.8",
"itty-router": "^5.0.18",
"toucan-js": "^4.1.0"
Expand Down
Loading