diff --git a/.github/workflows/deploy-storacha.yml b/.github/workflows/deploy-storacha.yml index 11fd1cf..3664654 100644 --- a/.github/workflows/deploy-storacha.yml +++ b/.github/workflows/deploy-storacha.yml @@ -47,6 +47,7 @@ jobs: echo "NEXT_PUBLIC_REFERRAL_URL=http://staging.storacha.network/referred" >> .env echo "NEXT_PUBLIC_REFERRALS_SERVICE_URL=https://staging-referrals.storacha.network" >> .env echo "NEXT_PUBLIC_SENTRY_ENV=staging" >> .env + echo "SENTRY_AUTH_TOKEN=${{ secrets.SENTRY_AUTH_TOKEN }}" >> .env # as long as this uses https://github.com/cloudflare/next-on-pages/blob/dc529d7efa8f8568ea8f71b5cdcf78df89be6c12/packages/next-on-pages/bin/index.js, # env vars won't get passed through to wrangler, so if wrangler will need them, write them to .env like the previous step - run: pnpm pages:build @@ -141,6 +142,7 @@ jobs: echo "NEXT_PUBLIC_REFERRAL_URL=http://storacha.network/referred" >> .env echo "NEXT_PUBLIC_REFERRALS_SERVICE_URL=https://referrals.storacha.network" >> .env echo "NEXT_PUBLIC_SENTRY_ENV=production" >> .env + echo "SENTRY_AUTH_TOKEN=${{ secrets.SENTRY_AUTH_TOKEN }}" >> .env - run: pnpm pages:build # as long as this uses https://github.com/cloudflare/next-on-pages/blob/dc529d7efa8f8568ea8f71b5cdcf78df89be6c12/packages/next-on-pages/bin/index.js, # env vars won't get passed through to wrangler, so if wrangler will need them, write them to .env like the previous step diff --git a/next.config.js b/next.config.js index 56b9a55..fd90d7c 100644 --- a/next.config.js +++ b/next.config.js @@ -15,6 +15,8 @@ const { withSentryConfig } = require("@sentry/nextjs"); module.exports = withSentryConfig( module.exports, { + authToken: process.env.SENTRY_AUTH_TOKEN, + // For all available options, see: // https://github.com/getsentry/sentry-webpack-plugin#options