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.
2 parents 32a9c29 + 18321c6 commit f0570c8Copy full SHA for f0570c8
1 file changed
src/files/files.service.ts
@@ -7,7 +7,6 @@ import { getSignedUrl } from '@aws-sdk/s3-request-presigner';
7
import { Injectable } from '@nestjs/common';
8
import { v4 as uuidv4 } from 'uuid';
9
import { PresignedUrlResponse } from './response/presigned.url.response';
10
-import { isDev } from '@/common';
11
import { InternalServerException } from '@/common/exception/internal-server.exception';
12
13
@Injectable()
@@ -21,12 +20,10 @@ export class FilesService {
21
20
constructor() {
22
this.s3 = new S3Client({
23
region: this.region,
24
- ...(isDev && {
25
- credentials: {
26
- accessKeyId: this.s3AccessKey,
27
- secretAccessKey: this.s3SecretKey,
28
- },
29
- }),
+ credentials: {
+ accessKeyId: this.s3AccessKey,
+ secretAccessKey: this.s3SecretKey,
+ },
30
});
31
}
32
0 commit comments