diff --git a/.gitignore b/.gitignore index e7c13bf..7b2195d 100644 --- a/.gitignore +++ b/.gitignore @@ -49,3 +49,5 @@ amplifytools.xcconfig .secret-* **.sample #amplify-do-not-edit-end + +.env \ No newline at end of file diff --git a/src/components/Components/DropFile.tsx b/src/components/Components/DropFile.tsx index 36b85c5..31a752b 100644 --- a/src/components/Components/DropFile.tsx +++ b/src/components/Components/DropFile.tsx @@ -7,13 +7,12 @@ import viewerState from '../../state/ViewerState'; import { useNavigate, useLocation } from 'react-router-dom'; import { Storage } from "@aws-amplify/storage" import * as AWS from 'aws-sdk'; -import axios from 'axios'; import { useSnackbar } from 'notistack' AWS.config.update({ - accessKeyId: '', // replace with own credentials to test - secretAccessKey: '', + accessKeyId: process.env.REACT_APP_AWS_ACCESS_KEY_ID, // replace with own credentials to test + secretAccessKey: process.env.REACT_APP_AWS_SECRET_KEY_ID, region: 'us-west-2' // replace with your region });