Also fixing for Google Storage

Signed-off-by: Andre Wanlin <awanlin@rapidrtc.com>
This commit is contained in:
Andre Wanlin
2021-11-03 07:30:56 -05:00
parent 4848c9cb20
commit 7240d33df3
@@ -231,7 +231,7 @@ export class GoogleGCSPublish implements PublisherBase {
? entityTriplet
: lowerCaseEntityTriplet(entityTriplet);
const entityRootDir = path.join(this.bucketRootPath, entityDir);
const entityRootDir = path.posix.join(this.bucketRootPath, entityDir);
const fileStreamChunks: Array<any> = [];
this.storageClient
@@ -270,7 +270,7 @@ export class GoogleGCSPublish implements PublisherBase {
: lowerCaseEntityTripletInStoragePath(decodedUriNoRoot);
// Re-prepend the root path to the relative file path
const filePath = path.join(this.bucketRootPath, filePathNoRoot);
const filePath = path.posix.join(this.bucketRootPath, filePathNoRoot);
// Files with different extensions (CSS, HTML) need to be served with different headers
const fileExtension = path.extname(filePath);
@@ -310,7 +310,7 @@ export class GoogleGCSPublish implements PublisherBase {
? entityTriplet
: lowerCaseEntityTriplet(entityTriplet);
const entityRootDir = path.join(this.bucketRootPath, entityDir);
const entityRootDir = path.posix.join(this.bucketRootPath, entityDir);
this.storageClient
.bucket(this.bucketName)