Skip to content

Commit

Permalink
fix: do not throw when alt path is found in next (#17658)
Browse files Browse the repository at this point in the history
close #17476
  • Loading branch information
elevatebart committed Aug 10, 2021
1 parent a84fd08 commit ee7e203
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions npm/react/plugins/next/findNextWebpackConfig.js
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down

0 comments on commit ee7e203

Please sign in to comment.