@nestjs-ssr/react 0.1.2 → 0.1.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.mjs CHANGED
@@ -433,9 +433,13 @@ var RenderService = class _RenderService {
433
433
  this.defaultHead = defaultHead;
434
434
  this.isDevelopment = process.env.NODE_ENV !== "production";
435
435
  this.ssrMode = ssrMode || process.env.SSR_MODE || "string";
436
- const absoluteTemplatePath = join(__dirname, "../templates/entry-server.tsx");
436
+ const absoluteTemplatePath = join(__dirname, "templates/entry-server.tsx");
437
437
  const relativeToApp = relative(process.cwd(), absoluteTemplatePath);
438
- this.entryServerPath = "/" + relativeToApp.replace(/\\/g, "/");
438
+ if (relativeToApp.startsWith("..")) {
439
+ this.entryServerPath = absoluteTemplatePath;
440
+ } else {
441
+ this.entryServerPath = "/" + relativeToApp.replace(/\\/g, "/");
442
+ }
439
443
  let templatePath;
440
444
  if (this.isDevelopment) {
441
445
  const packageTemplatePaths = [