Skip to content

Commit ee7e203

Browse files
author
Barthélémy Ledoux
authored
fix: do not throw when alt path is found in next (#17658)
close #17476
1 parent a84fd08 commit ee7e203

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

npm/react/plugins/next/findNextWebpackConfig.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,9 @@ async function getNextWebpackConfig (config) {
1414
// is not in the next-server folder anymore.
1515
// @ts-ignore
1616
loadConfig = require('next/dist/server/config').default
17+
} else {
18+
throw e
1719
}
18-
19-
throw e
2020
}
2121
const nextConfig = await loadConfig('development', config.projectRoot)
2222
const nextWebpackConfig = await getNextJsBaseWebpackConfig(

0 commit comments

Comments
 (0)