Skip to content

Commit

Permalink
chore: speeds up edge config lookup
Browse files Browse the repository at this point in the history
  • Loading branch information
feugy committed Aug 18, 2022
1 parent 6b5706e commit 817129b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/next/build/webpack/plugins/middleware-plugin.ts
Expand Up @@ -235,7 +235,7 @@ function getEdgeEntryBuildInfo(
module: webpack.Module
) {
let currentModule: webpack.Module | null = module
while (currentModule) {
while (currentModule?.layer === 'middleware') {
const buildInfo = getModuleBuildInfo(currentModule)
if (buildInfo.edgeFunctionConfig) {
return buildInfo
Expand Down

0 comments on commit 817129b

Please sign in to comment.