Skip to content

Commit 19ab733

Browse files
committed
.
1 parent 7d9fd8f commit 19ab733

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

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

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,11 @@ function populateR2IncrementalCache(
122122

123123
runWrangler(
124124
options,
125-
["r2 object put", JSON.stringify(path.join(bucket, cacheKey)), `--file ${JSON.stringify(fullPath)}`],
125+
[
126+
"r2 object put",
127+
JSON.stringify(normalizePath(path.join(bucket, cacheKey))),
128+
`--file ${JSON.stringify(fullPath)}`,
129+
],
126130
// NOTE: R2 does not support the environment flag and results in the following error:
127131
// Incorrect type for the 'cacheExpiry' field on 'HttpMetadata': the provided value is not of type 'date'.
128132
{ target: populateCacheOptions.target, excludeRemoteFlag: true, logging: "error" }

0 commit comments

Comments
 (0)