Skip to content

Commit 7d9fd8f

Browse files
committed
.
1 parent 6bc13d4 commit 7d9fd8f

File tree

1 file changed

+2
-7
lines changed

1 file changed

+2
-7
lines changed

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

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -58,13 +58,8 @@ export function getCacheAssets(opts: BuildOptions): CacheAsset[] {
5858
const assets: CacheAsset[] = [];
5959

6060
for (const file of allFiles) {
61-
const fullPath = file.fullpathPosix();
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);
61+
const fullPath = file.fullpath();
62+
const relativePath = normalizePath(path.relative(path.join(opts.outputDir, "cache"), fullPath));
6863

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

0 commit comments

Comments
 (0)