diff --git a/packages/next/src/server/config.ts b/packages/next/src/server/config.ts index dafa620974f10..6d01cf5d9927e 100644 --- a/packages/next/src/server/config.ts +++ b/packages/next/src/server/config.ts @@ -730,10 +730,7 @@ export default async function loadConfig( : Log await loadEnvConfig(dir, phase === PHASE_DEVELOPMENT_SERVER, curLog) - - if (!customConfig) { - loadWebpackHook() - } + loadWebpackHook() let configFileName = 'next.config.js'