File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed
api/server/services/Files/S3 Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -14,7 +14,7 @@ const {
1414const endpoint = process . env . AWS_ENDPOINT_URL ;
1515const bucketName = process . env . AWS_BUCKET_NAME ;
1616const defaultBasePath = 'images' ;
17- const forcePathStyle = [ '1' , 'true' , 'yes' ] . includes ( process . env . AWS_FORCE_PATH_STYLE ? .toLowerCase ( ) ) ;
17+ const forcePathStyle = [ '1' , 'true' , 'yes' ] . includes ( ( process . env . AWS_FORCE_PATH_STYLE ?? '' ) . toLowerCase ( ) ) ;
1818
1919let s3UrlExpirySeconds = 2 * 60 ; // 2 minutes
2020let s3RefreshExpiryMs = null ;
Original file line number Diff line number Diff line change @@ -28,7 +28,7 @@ export const initializeS3 = (): S3Client | null => {
2828 const endpoint = process . env . AWS_ENDPOINT_URL ;
2929 const accessKeyId = process . env . AWS_ACCESS_KEY_ID ;
3030 const secretAccessKey = process . env . AWS_SECRET_ACCESS_KEY ;
31- const forcePathStyle = [ '1' , 'true' , 'yes' ] . includes ( process . env . AWS_FORCE_PATH_STYLE ? .toLowerCase ( ) ) ;
31+ const forcePathStyle = [ '1' , 'true' , 'yes' ] . includes ( ( process . env . AWS_FORCE_PATH_STYLE ?? '' ) . toLowerCase ( ) ) ;
3232
3333 const config = {
3434 region,
You can’t perform that action at this time.
0 commit comments