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
|
2024-03-05 15:48:46 +01:00
|
|
|
config.module.rules.push({
|
|
|
|
test: /\.mjs$/,
|
|
|
|
enforce: 'pre',
|
|
|
|
use: ['source-map-loader'],
|
|
|
|
});
|
2023-04-21 11:19:55 +02:00
|
|
|
return config;
|
|
|
|
},
|
2022-10-24 17:03:12 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
module.exports = nextConfig;
|