diff --git a/site/next.config.js b/site/next.config.js index b6cb8d0447..658890d374 100644 --- a/site/next.config.js +++ b/site/next.config.js @@ -6,7 +6,7 @@ module.exports = { config.module.rules.push({ test: /\.js$/, enforce: 'pre', - exclude: [/node_modules\/@next/, /node_modules\/next/], + exclude: [/node_modules[\\\/]@next/, /node_modules[\\\/]next/], use: [ { loader: require.resolve('source-map-loader'),