File tree Expand file tree Collapse file tree 1 file changed +1
-2
lines changed
packages/angular_devkit/build_angular/src/utils/server-rendering Expand file tree Collapse file tree 1 file changed +1
-2
lines changed Original file line number Diff line number Diff line change @@ -121,13 +121,12 @@ export async function prerenderPages(
121
121
for ( const route of allRoutes ) {
122
122
const isAppShellRoute = appShellRoute === route ;
123
123
const serverContext : ServerContext = isAppShellRoute ? 'app-shell' : 'ssg' ;
124
-
125
124
const render : Promise < RenderResult > = renderWorker . run ( { route, serverContext } ) ;
126
125
const renderResult : Promise < void > = render . then ( ( { content, warnings, errors } ) => {
127
126
if ( content !== undefined ) {
128
127
const outPath = isAppShellRoute
129
128
? 'index.html'
130
- : removeLeadingSlash ( posix . join ( route , 'index.html' ) ) ;
129
+ : posix . join ( removeLeadingSlash ( route ) , 'index.html' ) ;
131
130
output [ outPath ] = content ;
132
131
}
133
132
You can’t perform that action at this time.
0 commit comments