Skip to content

Commit

Permalink
fix: include views path in template path
Browse files Browse the repository at this point in the history
  • Loading branch information
Markus-Ende committed Feb 1, 2024
1 parent f1398a6 commit 2e12a8f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/angular-universal.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@ export class AngularUniversalModule implements OnModuleInit {

static forRoot(options: AngularUniversalOptions): DynamicModule {
const indexHtml = existsSync(join(options.viewsPath, 'index.original.html'))
? 'index.original.html'
: 'index';
? join(options.viewsPath, 'index.original.html')
: join(options.viewsPath, 'index.html');

options = {
templatePath: indexHtml,
Expand Down

0 comments on commit 2e12a8f

Please sign in to comment.