Skip to content

Commit fb5c49f

Browse files
james-elicxvicb
andauthored
Update packages/cloudflare/src/cli/commands/populate-cache.ts
Co-authored-by: Victor Berchet <[email protected]>
1 parent 4397b51 commit fb5c49f

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

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

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,14 @@ async function populateR2IncrementalCache(
146146
quoteShellMeta(normalizePath(path.join(bucket, cacheKey))),
147147
`--file ${quoteShellMeta(fullPath)}`,
148148
],
149-
// NOTE: R2 does not support the environment flag and results in the following error:
149+
{
150+
target: populateCacheOptions.target,
151+
configPath: populateCacheOptions.configPath,
152+
// R2 does not support the environment flag and results in the following error:
153+
// Incorrect type for the 'cacheExpiry' field on 'HttpMetadata': the provided value is not of type 'date'.
154+
environment: undefined,
155+
logging: "error",
156+
}
150157
// Incorrect type for the 'cacheExpiry' field on 'HttpMetadata': the provided value is not of type 'date'.
151158
{
152159
target: populateCacheOptions.target,

0 commit comments

Comments
 (0)