|
1 | 1 | require("dotenv").config({ path: "../../.env" }); |
2 | 2 | const englishTranslation = require("./public/static/locales/en/common.json"); |
3 | 3 | const { withAxiom } = require("next-axiom"); |
4 | | -const { withSentryConfig } = require("@sentry/nextjs"); |
5 | 4 | const { version } = require("./package.json"); |
6 | 5 | const { |
7 | 6 | i18n: { locales }, |
@@ -188,9 +187,8 @@ const nextConfig = { |
188 | 187 | experimental: { |
189 | 188 | // externalize server-side node_modules with size > 1mb, to improve dev mode performance/RAM usage |
190 | 189 | optimizePackageImports: ["@calcom/ui"], |
191 | | - turbo: {}, |
192 | 190 | }, |
193 | | - productionBrowserSourceMaps: process.env.SENTRY_DISABLE_CLIENT_SOURCE_MAPS === "0", |
| 191 | + productionBrowserSourceMaps: true, |
194 | 192 | /* We already do type check on GH actions */ |
195 | 193 | typescript: { |
196 | 194 | ignoreBuildErrors: !!process.env.CI, |
@@ -226,10 +224,6 @@ const nextConfig = { |
226 | 224 | }, |
227 | 225 | webpack: (config, { webpack, buildId, isServer }) => { |
228 | 226 | if (isServer) { |
229 | | - if (process.env.SENTRY_DISABLE_SERVER_SOURCE_MAPS === "1") { |
230 | | - config.devtool = false; |
231 | | - } |
232 | | - |
233 | 227 | // Module not found fix @see https://github.com/boxyhq/jackson/issues/1535#issuecomment-1704381612 |
234 | 228 | config.plugins.push( |
235 | 229 | new webpack.IgnorePlugin({ |
@@ -691,19 +685,4 @@ const nextConfig = { |
691 | 685 | }, |
692 | 686 | }; |
693 | 687 |
|
694 | | -if (!!process.env.NEXT_PUBLIC_SENTRY_DSN) { |
695 | | - plugins.push((nextConfig) => |
696 | | - withSentryConfig(nextConfig, { |
697 | | - autoInstrumentServerFunctions: false, |
698 | | - hideSourceMaps: true, |
699 | | - // disable source map generation for the server code |
700 | | - disableServerWebpackPlugin: !!process.env.SENTRY_DISABLE_SERVER_WEBPACK_PLUGIN, |
701 | | - silent: false, |
702 | | - sourcemaps: { |
703 | | - disable: process.env.SENTRY_DISABLE_SERVER_SOURCE_MAPS === "1", |
704 | | - }, |
705 | | - }) |
706 | | - ); |
707 | | -} |
708 | | - |
709 | 688 | module.exports = () => plugins.reduce((acc, next) => next(acc), nextConfig); |
0 commit comments