Skip to content

Commit e25f91c

Browse files
committed
fix(@angular/build): skip prerendering when no routes are configured
When no routes are specified, prerendering is unnecessary and can lead to unexpected behavior. This change ensures that prerendering is only performed when routes are properly configured.
1 parent 1890fe4 commit e25f91c

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

packages/angular/ssr/src/routes/ng-routes.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -477,8 +477,6 @@ export async function getRoutesFromAngularRouterConfig(
477477
);
478478
}
479479
}
480-
} else {
481-
routesResults.push({ route: '', renderMode: RenderMode.Prerender });
482480
}
483481

484482
return {

0 commit comments

Comments
 (0)