diff --git a/npm/react/plugins/next/findNextWebpackConfig.js b/npm/react/plugins/next/findNextWebpackConfig.js index 6a82fb072c0f..e86c5e3dd6a9 100644 --- a/npm/react/plugins/next/findNextWebpackConfig.js +++ b/npm/react/plugins/next/findNextWebpackConfig.js @@ -14,9 +14,9 @@ async function getNextWebpackConfig (config) { // is not in the next-server folder anymore. // @ts-ignore loadConfig = require('next/dist/server/config').default + } else { + throw e } - - throw e } const nextConfig = await loadConfig('development', config.projectRoot) const nextWebpackConfig = await getNextJsBaseWebpackConfig(