mirror of
https://github.com/DSpace/dspace-angular.git
synced 2025-10-07 10:04:11 +00:00
[DURACOM-234] Switch to standalone bootstrapping API
This commit is contained in:
@@ -7,14 +7,13 @@ import 'reflect-metadata';
|
||||
*/
|
||||
import '@angular/localize/init';
|
||||
|
||||
import { enableProdMode } from '@angular/core';
|
||||
import { bootstrapApplication } from '@angular/platform-browser';
|
||||
|
||||
import { environment } from './environments/environment';
|
||||
import { AppComponent } from './app/app.component';
|
||||
import { serverAppConfig } from './modules/app/server-app.config';
|
||||
|
||||
if (environment.production) {
|
||||
enableProdMode();
|
||||
}
|
||||
const bootstrap = () => bootstrapApplication(AppComponent, serverAppConfig);
|
||||
|
||||
export { ServerAppModule } from './modules/app/server-app.module';
|
||||
export { renderModule } from '@angular/platform-server';
|
||||
export { ngExpressEngine } from '@nguniversal/express-engine';
|
||||
export default bootstrap;
|
||||
|
Reference in New Issue
Block a user