fix(server): disable checksum check for r2 storage when using aws-s3 sdk (#9735)

This commit is contained in:
liuyi authored and GitHub committed 2025-01-16 11:47:50 +00:00
1 parent 908afe19ee
commit 3828144849
4 files changed
+14 -6

No files matched your search

+2
View File
@@ -18,6 +18,8 @@ export class WebpackS3Plugin implements WebpackPluginInstance {
accessKeyId: process.env.R2_ACCESS_KEY_ID!,
secretAccessKey: process.env.R2_SECRET_ACCESS_KEY!,
},
requestChecksumCalculation: 'WHEN_REQUIRED',
responseChecksumValidation: 'WHEN_REQUIRED',
});
apply(compiler: Compiler) {