diff --git a/lib/angular-universal.module.ts b/lib/angular-universal.module.ts index 3af6f131..41de6ae9 100755 --- a/lib/angular-universal.module.ts +++ b/lib/angular-universal.module.ts @@ -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, diff --git a/package.json b/package.json index 7312c492..5e1e0238 100644 --- a/package.json +++ b/package.json @@ -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",