Skip to content

Commit f0570c8

Browse files
authored
Merge pull request #85 from mash-up-kr/main
fix: S3 Presigned URL 생성 실패 해결
2 parents 32a9c29 + 18321c6 commit f0570c8

1 file changed

Lines changed: 4 additions & 7 deletions

File tree

src/files/files.service.ts

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ import { getSignedUrl } from '@aws-sdk/s3-request-presigner';
77
import { Injectable } from '@nestjs/common';
88
import { v4 as uuidv4 } from 'uuid';
99
import { PresignedUrlResponse } from './response/presigned.url.response';
10-
import { isDev } from '@/common';
1110
import { InternalServerException } from '@/common/exception/internal-server.exception';
1211

1312
@Injectable()
@@ -21,12 +20,10 @@ export class FilesService {
2120
constructor() {
2221
this.s3 = new S3Client({
2322
region: this.region,
24-
...(isDev && {
25-
credentials: {
26-
accessKeyId: this.s3AccessKey,
27-
secretAccessKey: this.s3SecretKey,
28-
},
29-
}),
23+
credentials: {
24+
accessKeyId: this.s3AccessKey,
25+
secretAccessKey: this.s3SecretKey,
26+
},
3027
});
3128
}
3229

0 commit comments

Comments
 (0)