Skip to content

Commit

Permalink
feat(shell): setup sentry releases
Browse files Browse the repository at this point in the history
  • Loading branch information
olegshilov committed Aug 28, 2024
1 parent b8f6b5a commit 0a46335
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 3 deletions.
14 changes: 12 additions & 2 deletions apps/shell/next.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ const nextConfig = {
},
};

/** @type {import('@sentry/nextjs').SentryBuildOptions} **/
const sentryWebpackPluginOptions = {
// For all available options, see:
// https://github.com/getsentry/sentry-webpack-plugin#options
Expand All @@ -50,14 +51,23 @@ const sentryWebpackPluginOptions = {
project: process.env.SENTRY_PROJECT,
authToken: process.env.SENTRY_AUTH_TOKEN,

release: {
name: process.env.NEXT_PUBLIC_VERCEL_GIT_COMMIT_SHA ?? 'development',
deploy: {
env: process.env.NEXT_PUBLIC_VERCEL_ENV ?? 'development',
},
},

// 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,

// Transpiles SDK to be compatible with IE11 (increases bundle size)
transpileClientSDK: true,
// Automatically annotate React components to show their full name in breadcrumbs and session replay
reactComponentAnnotation: {
enabled: true,
},

// 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.
Expand Down
1 change: 0 additions & 1 deletion apps/vesting/vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,6 @@ export default defineConfig({
reactComponentAnnotation: {
enabled: true,
},
sourcemaps: {},
}),
],

Expand Down

0 comments on commit 0a46335

Please sign in to comment.