Skip to content

Commit

Permalink
Update awsS3.js
Browse files Browse the repository at this point in the history
  • Loading branch information
gouravmore authored Mar 5, 2025
1 parent 30badd0 commit 8d74f33
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions src/config/awsS3.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
// import { S3Client } from '@aws-sdk/client-s3';
import { S3Client } from '@aws-sdk/client-s3';

// export default new S3Client({
// region: process.env.REACT_APP_AWS_S3_REGION,
// credentials: {
// accessKeyId: process.env.REACT_APP_AWS_ACCESS_KEY_ID,
// secretAccessKey: process.env.REACT_APP_AWS_SECRET_ACCESS_KEY,
// },
// });
export default new S3Client({
region: process.env.REACT_APP_AWS_S3_REGION,
credentials: {
accessKeyId: process.env.REACT_APP_AWS_ACCESS_KEY_ID,
secretAccessKey: process.env.REACT_APP_AWS_SECRET_ACCESS_KEY,
},
});

0 comments on commit 8d74f33

Please sign in to comment.