Skip to content
This repository was archived by the owner on Jan 28, 2025. It is now read-only.

Commit 4027b18

Browse files
fix windows specific issues with s3 keys not being posix (2)
1 parent 7f94c4b commit 4027b18

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

packages/s3-static-assets/src/index.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -77,9 +77,8 @@ const uploadStaticAssets = async (
7777
return files.filter(filterOutDirectories).map(fileItem =>
7878
s3.uploadFile({
7979
filePath: fileItem.path,
80-
s3Key: path.posix.relative(
81-
path.posix.resolve(nextConfigDir),
82-
fileItem.path
80+
s3Key: pathToPosix(
81+
path.relative(path.resolve(nextConfigDir), fileItem.path)
8382
)
8483
})
8584
);

0 commit comments

Comments
 (0)