Skip to content

Commit a48c8c4

Browse files
authored
fix: add sentry auth token to enable sourcemap upload (#168)
this will give us nice stack traces and other conveniences in Sentry
1 parent 562bf8f commit a48c8c4

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

.github/workflows/deploy-storacha.yml

+2
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,7 @@ jobs:
4747
echo "NEXT_PUBLIC_REFERRAL_URL=http://staging.storacha.network/referred" >> .env
4848
echo "NEXT_PUBLIC_REFERRALS_SERVICE_URL=https://staging-referrals.storacha.network" >> .env
4949
echo "NEXT_PUBLIC_SENTRY_ENV=staging" >> .env
50+
echo "SENTRY_AUTH_TOKEN=${{ secrets.SENTRY_AUTH_TOKEN }}" >> .env
5051
# as long as this uses https://github.com/cloudflare/next-on-pages/blob/dc529d7efa8f8568ea8f71b5cdcf78df89be6c12/packages/next-on-pages/bin/index.js,
5152
# env vars won't get passed through to wrangler, so if wrangler will need them, write them to .env like the previous step
5253
- run: pnpm pages:build
@@ -141,6 +142,7 @@ jobs:
141142
echo "NEXT_PUBLIC_REFERRAL_URL=http://storacha.network/referred" >> .env
142143
echo "NEXT_PUBLIC_REFERRALS_SERVICE_URL=https://referrals.storacha.network" >> .env
143144
echo "NEXT_PUBLIC_SENTRY_ENV=production" >> .env
145+
echo "SENTRY_AUTH_TOKEN=${{ secrets.SENTRY_AUTH_TOKEN }}" >> .env
144146
- run: pnpm pages:build
145147
# as long as this uses https://github.com/cloudflare/next-on-pages/blob/dc529d7efa8f8568ea8f71b5cdcf78df89be6c12/packages/next-on-pages/bin/index.js,
146148
# env vars won't get passed through to wrangler, so if wrangler will need them, write them to .env like the previous step

next.config.js

+2
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,8 @@ const { withSentryConfig } = require("@sentry/nextjs");
1515
module.exports = withSentryConfig(
1616
module.exports,
1717
{
18+
authToken: process.env.SENTRY_AUTH_TOKEN,
19+
1820
// For all available options, see:
1921
// https://github.com/getsentry/sentry-webpack-plugin#options
2022

0 commit comments

Comments
 (0)