Skip to content

Commit 7581c15

Browse files
committed
fix(astro): convert windows filepaths to webcontainer compatible
1 parent 4f6d6f6 commit 7581c15

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/astro/src/default/utils/content/files-ref.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ export async function getFilesRefList(pathToFolder: string, base = CONTENT_DIR):
1515
ignore: IGNORED_FILES,
1616
dot: true,
1717
})
18-
).map((filePath) => `/${path.relative(root, filePath)}`);
18+
).map((filePath) => `/${path.relative(root, filePath).replaceAll(path.sep, '/')}`);
1919

2020
filePaths.sort();
2121

0 commit comments

Comments
 (0)