Skip to content

Commit

Permalink
fix(@angular/build): skip prerendering when no routes are configured
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
alan-agius4 committed Oct 25, 2024
1 parent 1890fe4 commit e25f91c
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions packages/angular/ssr/src/routes/ng-routes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -477,8 +477,6 @@ export async function getRoutesFromAngularRouterConfig(
);
}
}
} else {
routesResults.push({ route: '', renderMode: RenderMode.Prerender });
}

return {
Expand Down

0 comments on commit e25f91c

Please sign in to comment.