2022-10-24 17:03:12 +02:00
|
|
|
/** @type {import('next').NextConfig} */
|
|
|
|
const nextConfig = {
|
2023-01-19 19:56:00 +01:00
|
|
|
reactStrictMode: false,
|
2023-04-21 11:19:55 +02:00
|
|
|
swcMinify: false,
|
|
|
|
productionBrowserSourceMaps: true,
|
|
|
|
webpack: (config, { buildId, dev, isServer, defaultLoaders, nextRuntime, webpack }) => {
|
|
|
|
// Important: return the modified config
|
|
|
|
config.module.rules = [
|
|
|
|
...config.module.rules,
|
|
|
|
{
|
|
|
|
test: /\.mjs$/,
|
|
|
|
enforce: 'pre',
|
|
|
|
use: ['source-map-loader'],
|
|
|
|
},
|
|
|
|
];
|
|
|
|
return config;
|
|
|
|
},
|
2022-10-24 17:03:12 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
module.exports = nextConfig;
|