We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 46b8dda commit da4e191Copy full SHA for da4e191
1 file changed
packages/angular_devkit/build_angular/src/utils/server-rendering/prerender.ts
@@ -121,13 +121,12 @@ export async function prerenderPages(
121
for (const route of allRoutes) {
122
const isAppShellRoute = appShellRoute === route;
123
const serverContext: ServerContext = isAppShellRoute ? 'app-shell' : 'ssg';
124
-
125
const render: Promise<RenderResult> = renderWorker.run({ route, serverContext });
126
const renderResult: Promise<void> = render.then(({ content, warnings, errors }) => {
127
if (content !== undefined) {
128
const outPath = isAppShellRoute
129
? 'index.html'
130
- : removeLeadingSlash(posix.join(route, 'index.html'));
+ : posix.join(removeLeadingSlash(route), 'index.html');
131
output[outPath] = content;
132
}
133
0 commit comments