@nestjs-ssr/react 0.1.2 → 0.1.3
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.js +5 -1
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +5 -1
- package/dist/index.mjs.map +1 -1
- package/dist/render/index.js +5 -1
- package/dist/render/index.js.map +1 -1
- package/dist/render/index.mjs +5 -1
- package/dist/render/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -435,7 +435,11 @@ var RenderService = class _RenderService {
|
|
|
435
435
|
this.ssrMode = ssrMode || process.env.SSR_MODE || "string";
|
|
436
436
|
const absoluteTemplatePath = join(__dirname, "../templates/entry-server.tsx");
|
|
437
437
|
const relativeToApp = relative(process.cwd(), absoluteTemplatePath);
|
|
438
|
-
|
|
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 = [
|