-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add Sentry error tracking (#165)
We need to track down some persistent errors in the app, and should have better visibility in general into web client performance - this will help with both. Staging/prod configuration are included in the build script here, and I've configured separate projects for dev/staging/prod in Sentry. Much of this was autogenerated by the Sentry Next.js setup wizard.
- Loading branch information
Showing
13 changed files
with
2,055 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -14,4 +14,9 @@ NEXT_PUBLIC_DISABLE_PLAN_GATE=false | |
|
||
# point these at the marketing website and referrals service | ||
NEXT_PUBLIC_REFERRAL_URL=http://localhost:3001/referred | ||
NEXT_PUBLIC_REFERRALS_SERVICE_URL=http://localhost:4001 | ||
NEXT_PUBLIC_REFERRALS_SERVICE_URL=http://localhost:4001 | ||
|
||
# Sentry | ||
NEXT_PUBLIC_SENTRY_DSN=https://[email protected]/4508462420393984 | ||
NEXT_PUBLIC_SENTRY_ORG=storacha-it | ||
NEXT_PUBLIC_SENTRY_PROJECT=console-dev |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -44,6 +44,9 @@ jobs: | |
echo "NEXT_PUBLIC_STRIPE_TRIAL_PRICING_TABLE_ID=prctbl_1QIDHGF6A5ufQX5vOK9Xl8Up" >> .env | ||
echo "NEXT_PUBLIC_STRIPE_PUBLISHABLE_KEY=pk_test_51LO87hF6A5ufQX5viNsPTbuErzfavdrEFoBuaJJPfoIhzQXdOUdefwL70YewaXA32ZrSRbK4U4fqebC7SVtyeNcz00qmgNgueC" >> .env | ||
echo "NEXT_PUBLIC_STRIPE_CUSTOMER_PORTAL_LINK=https://billing.stripe.com/p/login/test_6oE29Gff99KO6mk8ww" >> .env | ||
echo "NEXT_PUBLIC_SENTRY_DSN=https://[email protected]/4508462417772544" >> .env | ||
echo "NEXT_PUBLIC_SENTRY_ORG=storacha-it" >> .env | ||
echo "NEXT_PUBLIC_SENTRY_PROJECT=console-staging" >> .env | ||
# use example.com in preview because we can't predict the preview URL of the storacha.network site | ||
echo "NEXT_PUBLIC_REFERRAL_URL=http://staging.storacha.network/referred" >> .env | ||
|
@@ -141,6 +144,9 @@ jobs: | |
echo "NEXT_PUBLIC_STRIPE_CUSTOMER_PORTAL_LINK=https://billing.stripe.com/p/login/cN22aA62U6bO1sA9AA" >> .env | ||
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_DSN=https://[email protected]/4508456692940801" >> .env | ||
echo "NEXT_PUBLIC_SENTRY_ORG=storacha-it" >> .env | ||
echo "NEXT_PUBLIC_SENTRY_PROJECT=console" >> .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 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -35,3 +35,6 @@ yarn-error.log* | |
# typescript | ||
*.tsbuildinfo | ||
next-env.d.ts | ||
|
||
# Sentry Config File | ||
.env.sentry-build-plugin |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.