Skip to content

Commit da4e191

Browse files
alan-agius4clydin
authored andcommitted
fix(@angular-devkit/build-angular): address a path concatenation on Windows
This should solve the Windows failures (cherry picked from commit 665b036)
1 parent 46b8dda commit da4e191

File tree

1 file changed

+1
-2
lines changed
  • packages/angular_devkit/build_angular/src/utils/server-rendering

1 file changed

+1
-2
lines changed

packages/angular_devkit/build_angular/src/utils/server-rendering/prerender.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -121,13 +121,12 @@ export async function prerenderPages(
121121
for (const route of allRoutes) {
122122
const isAppShellRoute = appShellRoute === route;
123123
const serverContext: ServerContext = isAppShellRoute ? 'app-shell' : 'ssg';
124-
125124
const render: Promise<RenderResult> = renderWorker.run({ route, serverContext });
126125
const renderResult: Promise<void> = render.then(({ content, warnings, errors }) => {
127126
if (content !== undefined) {
128127
const outPath = isAppShellRoute
129128
? 'index.html'
130-
: removeLeadingSlash(posix.join(route, 'index.html'));
129+
: posix.join(removeLeadingSlash(route), 'index.html');
131130
output[outPath] = content;
132131
}
133132

0 commit comments

Comments
 (0)