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 d4c333b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 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
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@qupaya/nestjs-ng-universal",
"version": "8.0.1",
"version": "8.0.2",
"description": "Forked from @nestjs/ng-universal with support for Angular 17",
"author": "Kamil Mysliwiec",
"license": "MIT",
Expand Down

0 comments on commit d4c333b

Please sign in to comment.