File tree Expand file tree Collapse file tree 2 files changed +6
-5
lines changed
Expand file tree Collapse file tree 2 files changed +6
-5
lines changed Original file line number Diff line number Diff line change 11import { APP_BASE_HREF } from '@angular/common' ;
2- import { CommonEngine } from '@angular/ssr' ;
2+ import { CommonEngine } from '@angular/ssr/node ' ;
33import express from 'express' ;
44import { fileURLToPath } from 'node:url' ;
55import { dirname , join , resolve } from 'node:path' ;
@@ -37,8 +37,8 @@ export function app(): express.Express {
3737 publicPath : browserDistFolder ,
3838 providers : [ { provide : APP_BASE_HREF , useValue : baseUrl } ] ,
3939 } )
40- . then ( ( html ) => res . send ( html ) )
41- . catch ( ( err ) => next ( err ) ) ;
40+ . then ( ( html : any ) => res . send ( html ) )
41+ . catch ( ( err : any ) => next ( err ) ) ;
4242 } ) ;
4343
4444 return server ;
Original file line number Diff line number Diff line change 1- import { bootstrapApplication } from '@angular/platform-browser' ;
1+ import { bootstrapApplication , BootstrapContext } from '@angular/platform-browser' ;
22import { AppComponent } from './app/app.component' ;
33import { config } from './app/app.config.server' ;
44
5- const bootstrap = ( ) => bootstrapApplication ( AppComponent , config ) ;
5+ const bootstrap = ( context ?: BootstrapContext ) =>
6+ bootstrapApplication ( AppComponent , config , context ) ;
67
78export default bootstrap ;
You can’t perform that action at this time.
0 commit comments