Skip to content

Commit

Permalink
fix: 잠깐 sentry 해제
Browse files Browse the repository at this point in the history
  • Loading branch information
ddarkr committed Feb 3, 2024
1 parent b0952f9 commit c3a32d4
Showing 1 changed file with 14 additions and 12 deletions.
26 changes: 14 additions & 12 deletions next.config.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
const { withSentryConfig } = require('@sentry/nextjs');
const withBundleAnalyzer = require('@next/bundle-analyzer')({
enabled: process.env.ANALYZE === 'true',
});
// const { withSentryConfig } = require('@sentry/nextjs');
// const withBundleAnalyzer = require('@next/bundle-analyzer')({
// enabled: process.env.ANALYZE === 'true',
// });
const CompressionPlugin = require('compression-webpack-plugin');
const { version } = require('./package.json');

Expand All @@ -28,12 +28,14 @@ const nextConfig = {
},
};

const sentryWebpackPluginOptions = {
silent: true,
authToken: process.env.SENTRY_AUTH_TOKEN,
};
// const sentryWebpackPluginOptions = {
// silent: true,
// authToken: process.env.SENTRY_AUTH_TOKEN,
// };

module.exports = () => {
const plugins = [[withSentryConfig, sentryWebpackPluginOptions], [withBundleAnalyzer]];
return plugins.reduce((acc, cur) => cur[0](acc, cur[1] ?? undefined), nextConfig);
};
module.exports = nextConfig;

// module.exports = () => {
// const plugins = [[withSentryConfig, sentryWebpackPluginOptions], [withBundleAnalyzer]];
// return plugins.reduce((acc, cur) => cur[0](acc, cur[1] ?? undefined), nextConfig);
// };

0 comments on commit c3a32d4

Please sign in to comment.