Skip to content

Commit

Permalink
fix(@angular-devkit/build-angular): address a path concatenation on W…
Browse files Browse the repository at this point in the history
…indows

This should solve the Windows failures

(cherry picked from commit 665b036)
  • Loading branch information
alan-agius4 authored and clydin committed Oct 18, 2023
1 parent 46b8dda commit da4e191
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -121,13 +121,12 @@ export async function prerenderPages(
for (const route of allRoutes) {
const isAppShellRoute = appShellRoute === route;
const serverContext: ServerContext = isAppShellRoute ? 'app-shell' : 'ssg';

const render: Promise<RenderResult> = renderWorker.run({ route, serverContext });
const renderResult: Promise<void> = render.then(({ content, warnings, errors }) => {
if (content !== undefined) {
const outPath = isAppShellRoute
? 'index.html'
: removeLeadingSlash(posix.join(route, 'index.html'));
: posix.join(removeLeadingSlash(route), 'index.html');
output[outPath] = content;
}

Expand Down

0 comments on commit da4e191

Please sign in to comment.