Skip to content

Commit 5f2ed40

Browse files
committed
fix: add --remote flag to wrangler r2 commands for v4 compat
1 parent 08af686 commit 5f2ed40

File tree

2 files changed

+1591
-1
lines changed

2 files changed

+1591
-1
lines changed

worker/deploy-site.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,8 @@ async function main() {
6868
exec(
6969
`wrangler r2 object put ${escapeShellArg(CONFIG.bucketName + '/' + key)} ` +
7070
`--file=${escapeShellArg(file)} ` +
71-
`--content-type=${escapeShellArg(contentType)}`
71+
`--content-type=${escapeShellArg(contentType)} ` +
72+
`--remote`
7273
)
7374
}
7475
log(`Uploaded ${files.length} files`)

0 commit comments

Comments
 (0)