Skip to content

Commit bb30924

Browse files
fix(): update main.server.ts to improve startup robustness (#5483)
1 parent 75e4cad commit bb30924

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed
Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,11 @@
1-
import { bootstrapApplication } from '@angular/platform-browser';
1+
import {
2+
bootstrapApplication,
3+
BootstrapContext
4+
} from '@angular/platform-browser';
25
import { AppComponent } from '../../angular-showcase/src/app/app.component';
36
import { config } from './app/app.config.server';
47

5-
const bootstrap = async () => bootstrapApplication(AppComponent, config);
8+
const bootstrap = (context: BootstrapContext) =>
9+
bootstrapApplication(AppComponent, config, context);
610

711
export default bootstrap;

0 commit comments

Comments
 (0)