Skip to content

Commit 38de1bc

Browse files
committed
.
1 parent 7b2ff7a commit 38de1bc

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

packages/cloudflare/src/cli/commands/populate-cache.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,9 @@ export function getCacheAssets(opts: BuildOptions): CacheAsset[] {
5959

6060
for (const file of allFiles) {
6161
const fullPath = file.fullpathPosix();
62-
const relativePath = normalizePath(path.relative(path.join(opts.outputDir, "cache"), fullPath));
62+
const relativePath = normalizePath(
63+
path.relative(path.join(opts.outputDir, "cache").replace(/^\\\\\?\\/, ""), fullPath)
64+
);
6365

6466
if (relativePath.startsWith("__fetch")) {
6567
const [__fetch, buildId, ...keyParts] = relativePath.split("/");

0 commit comments

Comments
 (0)