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(
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
You can’t perform that action at this time.
0 commit comments