Skip to content

Commit

Permalink
remove redundant segment collection call (#73773)
Browse files Browse the repository at this point in the history
We've already collected segments for the route that's being built in the
call right above this line, so no need to do the work twice.
  • Loading branch information
ztanner authored Dec 11, 2024
1 parent ddd6629 commit 9bc78a0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/next/src/build/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1637,7 +1637,7 @@ export async function isPageStatic({
})
}

appConfig = reduceAppConfig(await collectSegments(componentsResult))
appConfig = reduceAppConfig(segments)

if (appConfig.dynamic === 'force-static' && pathIsEdgeRuntime) {
Log.warn(
Expand Down

0 comments on commit 9bc78a0

Please sign in to comment.