Skip to content

Commit 6bc13d4

Browse files
committed
.
1 parent 7b2ff7a commit 6bc13d4

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

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

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,12 @@ 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+
console.warn("fullPath", fullPath);
63+
console.warn("path.join", path.join(opts.outputDir, "cache"));
64+
const relativePath = normalizePath(
65+
fullPath.replace("//?/", "").replace(path.join(opts.outputDir, "cache"), "").replace(/^\//, "")
66+
);
67+
console.warn("relativePath", relativePath);
6368

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

0 commit comments

Comments
 (0)