Skip to content

Commit

Permalink
fix: loop exit
Browse files Browse the repository at this point in the history
  • Loading branch information
florian-lefebvre committed Dec 6, 2024
1 parent 58c97cc commit a4680c3
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion packages/astro/src/core/build/page-data.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,13 +30,19 @@ export function collectPagesData(opts: CollectPagesDataOptions): CollectPagesDat
// and is then cached across all future SSR builds. In the past, we've had trouble
// with parallelized builds without guaranteeing that this is called first.

let exit = false
for (const route of manifest.routes) {
// There's special handling in SSR
for (const component of DEFAULT_COMPONENTS) {
if (route.component === component) {
continue;
exit = true
break;
}
}
if (exit) {
exit = false
continue;
}
// Generate a unique key to identify each page in the build process.
const key = makePageDataKey(route.route, route.component);
// static route:
Expand Down

0 comments on commit a4680c3

Please sign in to comment.