diff --git a/server/app.module.ts b/server/app.module.ts index feadeb5..ad64165 100644 --- a/server/app.module.ts +++ b/server/app.module.ts @@ -1,6 +1,7 @@ import {Module} from '@nestjs/common'; import {AngularUniversalModule, applyDomino} from '@nestjs/ng-universal'; import {join} from 'path'; +import {AppServerModule} from '../src/main.server'; import {AppController} from './app.controller'; const BROWSER_DIR = join(process.cwd(), 'dist/candidate-report'); @@ -9,8 +10,8 @@ applyDomino(global, join(BROWSER_DIR, 'index.html')); @Module({ imports: [ AngularUniversalModule.forRoot({ - viewsPath: BROWSER_DIR, - bundle: require('../candidate-report-server/main.js') + bootstrap: AppServerModule, + viewsPath: BROWSER_DIR }), ], controllers: [AppController],