diff --git a/server/build/webpack.js b/server/build/webpack.js index 80dca3e1..ce990762 100644 --- a/server/build/webpack.js +++ b/server/build/webpack.js @@ -49,7 +49,6 @@ export default async function createCompiler (dir, { dev = false, quiet = false } const nextNodeModulesDir = join(__dirname, '..', '..', '..', 'node_modules') - const appNodeModulesDir = join(dir, 'node_modules') const minChunks = pages.filter((p) => p !== documentPage).length const plugins = [ @@ -188,7 +187,7 @@ export default async function createCompiler (dir, { dev = false, quiet = false resolve: { modules: [ nextNodeModulesDir, - appNodeModulesDir + 'node_modules' ].concat( (process.env.NODE_PATH || '') .split(process.platform === 'win32' ? ';' : ':') @@ -198,7 +197,7 @@ export default async function createCompiler (dir, { dev = false, quiet = false resolveLoader: { modules: [ nextNodeModulesDir, - appNodeModulesDir, + 'node_modules', join(__dirname, 'loaders') ] },