S3Client: Add forcePathStyle

This commit is contained in:
Valentin Lestoille
2024-03-22 15:46:22 +01:00
parent 007687bdee
commit c71347aeb9
7 changed files with 9 additions and 0 deletions

View File

@ -132,6 +132,7 @@ const getS3Client = () => {
return new S3Client({
endpoint: process.env.NEXT_PRIVATE_UPLOAD_ENDPOINT || undefined,
forcePathStyle: process.env.NEXT_PRIVATE_UPLOAD_FORCE_PATH_STYLE || 'false',
region: process.env.NEXT_PRIVATE_UPLOAD_REGION || 'us-east-1',
credentials: hasCredentials
? {