Skip to content

Commit

Permalink
enable public source maps
Browse files Browse the repository at this point in the history
  • Loading branch information
Esanim committed Nov 21, 2023
1 parent 0bb9cff commit 2862880
Showing 1 changed file with 13 additions and 11 deletions.
24 changes: 13 additions & 11 deletions next.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,20 +13,22 @@ const moduleExports = {
'swagger-ui-react',
],
reactStrictMode: true,
webpack(config, {webpack}) {
webpack(config, { webpack }) {
config.plugins.push(
new webpack.DefinePlugin({
__SENTRY_DEBUG__: false,
__SENTRY_TRACING__: false,
})
)
config.module.rules.push({
test: /\.svg$/,
use: ['@svgr/webpack'],
})
config.resolve.fallback = {fs: false, net: false, tls: false}
}),
);
config.module.rules.push(
{
test: /\.svg$/,
use: [ '@svgr/webpack' ],
},
);
config.resolve.fallback = { fs: false, net: false, tls: false };

return config
return config;
},
// NOTE: all config functions should be static and not depend on any environment variables
// since all variables will be passed to the app only at runtime and there is now way to change Next.js config at this time
Expand All @@ -36,7 +38,7 @@ const moduleExports = {
redirects,
headers,
output: 'standalone',
productionBrowserSourceMaps: true,
}
productionBrowserSourceMaps: true

Check failure on line 41 in next.config.js

View workflow job for this annotation

GitHub Actions / Code quality

Missing trailing comma
};

module.exports = withRoutes(moduleExports);

0 comments on commit 2862880

Please sign in to comment.