Skip to content
This repository has been archived by the owner on Sep 15, 2020. It is now read-only.

Commit

Permalink
fix(server): account for breaking change in @nestjs/ng-universal
Browse files Browse the repository at this point in the history
  • Loading branch information
Splaktar committed May 3, 2020
1 parent 4a24a73 commit adad1eb
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions server/app.module.ts
Original file line number Diff line number Diff line change
@@ -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');
Expand All @@ -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],
Expand Down

0 comments on commit adad1eb

Please sign in to comment.