diff --git a/packages/core.gbapp/services/GBDeployer.ts b/packages/core.gbapp/services/GBDeployer.ts index 483ed6a9..84d68ede 100644 --- a/packages/core.gbapp/services/GBDeployer.ts +++ b/packages/core.gbapp/services/GBDeployer.ts @@ -525,7 +525,7 @@ export class GBDeployer implements IGBDeployer { // Download files or navigate to directory to recurse. await CollectionUtil.asyncForEach(documents, async item => { - const itemPath = packagePath.join(localPath, remotePath, item.name); + const itemPath = path.join(localPath, remotePath, item.name); if (item.folder) { if (!(await GBUtil.exists(itemPath))) { diff --git a/packages/core.gbapp/services/GBSSR.ts b/packages/core.gbapp/services/GBSSR.ts index 200a3454..1b8568a9 100644 --- a/packages/core.gbapp/services/GBSSR.ts +++ b/packages/core.gbapp/services/GBSSR.ts @@ -336,7 +336,7 @@ export class GBSSR { packagePath = GBServer.globals.wwwroot + "/index.html"; // TODO. } if (!min && !url.startsWith("/static") && GBServer.globals.wwwroot) { - packagePath = packagePath.join(GBServer.globals.wwwroot, url); + packagePath = path.join(GBServer.globals.wwwroot, url); } if (await GBUtil.exists(packagePath)) { if (min) {