Skip to content

Commit

Permalink
ci: disable sentry on server
Browse files Browse the repository at this point in the history
  • Loading branch information
Shramkoweb committed Aug 31, 2022
1 parent e96daa5 commit 8e1eae7
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions next.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ const securityHeaders = [
{
key: 'Strict-Transport-Security',
value: 'max-age=31536000; includeSubDomains; preload'
},
}
];

/** @type {import("next").NextConfig} */
Expand Down Expand Up @@ -68,7 +68,10 @@ const nextConfig = {

const nextConfigByEnv = {
production: withSentryConfig(nextConfig, {
silent: true
silent: true,
// https://github.com/getsentry/sentry-javascript/issues/5667
disableServerWebpackPlugin: true,
disableClientWebpackPlugin: false
}),
test: nextConfig,
development: nextConfig
Expand Down

0 comments on commit 8e1eae7

Please sign in to comment.