From da4e19145b341dccdd5174cc7bc821e5025514b1 Mon Sep 17 00:00:00 2001 From: Alan Agius Date: Wed, 18 Oct 2023 17:12:18 +0000 Subject: [PATCH] fix(@angular-devkit/build-angular): address a path concatenation on Windows This should solve the Windows failures (cherry picked from commit 665b036ca24ab62c30eb9a7caaadfd09cbb62cc5) --- .../build_angular/src/utils/server-rendering/prerender.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/packages/angular_devkit/build_angular/src/utils/server-rendering/prerender.ts b/packages/angular_devkit/build_angular/src/utils/server-rendering/prerender.ts index cd1f91f0c0f3..ac3423bdf3a3 100644 --- a/packages/angular_devkit/build_angular/src/utils/server-rendering/prerender.ts +++ b/packages/angular_devkit/build_angular/src/utils/server-rendering/prerender.ts @@ -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 = renderWorker.run({ route, serverContext }); const renderResult: Promise = 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; }