Skip to content
Open
Show file tree
Hide file tree
Changes from 7 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
1 change: 1 addition & 0 deletions .env.example
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,5 @@ TEMPLATE_URL=https://templating.api.zesty.io/
ALGOLIA_APPID=
ALGOLIA_APIKEY=
ALGOLIA_INDEX=
SENTRY_AUTH_TOKEN=

2 changes: 2 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,8 @@ jobs:
node-version: [20]
runs-on: ${{ matrix.os }}
needs: install-dependencies
env:
SENTRY_AUTH_TOKEN: ${{ secrets.SENTRY_AUTH_TOKEN }}
Comment thread
finnar-bin marked this conversation as resolved.
Comment thread
finnar-bin marked this conversation as resolved.
Comment thread
finnar-bin marked this conversation as resolved.

steps:
- name: ✅ Checkout code
Expand Down
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -38,3 +38,6 @@ cypress.json
cypress/integration/__image_snapshots__
.vercel
.idea

# Sentry Config File
.env.sentry-build-plugin
36 changes: 36 additions & 0 deletions next.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,3 +20,39 @@ module.exports = {
return [...docsRedirects];
},
};

// Injected content via Sentry wizard below

const { withSentryConfig } = require('@sentry/nextjs');

module.exports = withSentryConfig(module.exports, {
Comment thread
finnar-bin marked this conversation as resolved.
Outdated
Comment thread
finnar-bin marked this conversation as resolved.
Outdated
// For all available options, see:
// https://www.npmjs.com/package/@sentry/webpack-plugin#options

org: 'zestyio',
project: 'website-accounts',

// Only print logs for uploading source maps in CI
silent: !process.env.CI,

// For all available options, see:
// https://docs.sentry.io/platforms/javascript/guides/nextjs/manual-setup/

// Upload a larger set of source maps for prettier stack traces (increases build time)
widenClientFileUpload: true,

// Uncomment to route browser requests to Sentry through a Next.js rewrite to circumvent ad-blockers.
// This can increase your server load as well as your hosting bill.
// Note: Check that the configured route will not match with your Next.js middleware, otherwise reporting of client-
// side errors will fail.
// tunnelRoute: "/monitoring",

// Automatically tree-shake Sentry logger statements to reduce bundle size
disableLogger: true,

// Enables automatic instrumentation of Vercel Cron Monitors. (Does not yet work with App Router route handlers.)
// See the following for more information:
// https://docs.sentry.io/product/crons/
// https://vercel.com/docs/cron-jobs
automaticVercelMonitors: true,
Comment thread
finnar-bin marked this conversation as resolved.
Comment thread
finnar-bin marked this conversation as resolved.
Comment thread
finnar-bin marked this conversation as resolved.
Comment thread
finnar-bin marked this conversation as resolved.
});
Comment thread
finnar-bin marked this conversation as resolved.
Outdated
Loading
Loading