Fixed s3 path join to work under any os

Signed-off-by: Andre Wanlin <awanlin@rapidrtc.com>
This commit is contained in:
Andre Wanlin
2021-10-31 19:56:06 -05:00
parent cd646b55a9
commit 777daa10ad
2 changed files with 6 additions and 1 deletions
@@ -357,7 +357,7 @@ export class AwsS3Publish 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);