Skip to content

Commit

Permalink
fix: changed the name of the values in .env files
Browse files Browse the repository at this point in the history
  • Loading branch information
dlv237 committed Jul 17, 2024
1 parent 17cc606 commit b6ea63a
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions my-app/src/components/form/file_form.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,10 @@ type FileData = {
};

const s3Client = new S3Client({
region: process.env.AWS_REGION,
region: process.env.NEXT_PUBLIC_AWS_REGION,
credentials: {
accessKeyId: process.env.AWS_ACCESS_KEY_ID || '',
secretAccessKey: process.env.AWS_SECRET_ACCESS_KEY || '',
accessKeyId: process.env.NEXT_PUBLIC_AWS_ACCESS_KEY_ID || '',
secretAccessKey: process.env.NEXT_PUBLIC_AWS_SECRET_ACCESS_KEY || '',
},
});

Expand Down Expand Up @@ -104,7 +104,7 @@ const FileForm = forwardRef(({ onNext, onBack }: { onNext: () => void, onBack: (
const name = `image_${Date.now()}_${uniqueId}.jpg`;
const contentType = 'image/jpeg';

const bucketName = process.env.AWS_S3_BUCKET_NAME;
const bucketName = process.env.NEXT_PUBLIC_AWS_S3_BUCKET_NAME;


const base64Data = Buffer.from(imageData.replace(/^data:image\/\w+;base64,/, ""), 'base64');
Expand Down

0 comments on commit b6ea63a

Please sign in to comment.