We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 599f653 commit 55eb4c0Copy full SHA for 55eb4c0
server/src/file/file.service.ts
@@ -76,9 +76,8 @@ export class FileService {
76
const s3Client = new S3Client({
77
region: region,
78
endpoint: endpoint,
79
- requestChecksumCalculation: endpoint.includes('localhost')
80
- ? 'WHEN_REQUIRED'
81
- : undefined,
+ requestChecksumCalculation:
+ process.env.NODE_ENV === 'development' ? 'WHEN_REQUIRED' : undefined,
82
credentials: {
83
accessKeyId: key,
84
secretAccessKey: secret,
0 commit comments