Skip to content

Commit

Permalink
Made it actually not lol
Browse files Browse the repository at this point in the history
  • Loading branch information
jotjern committed Feb 19, 2024
1 parent 389788b commit 9baef19
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions src/utils/getPresignedS3URL.ts
Original file line number Diff line number Diff line change
@@ -1,13 +1,5 @@
import AWS from "aws-sdk";

if (process.env.NEXT_AWS_ACCESS_KEY_ID === undefined) {
throw new Error('NEXT_AWS_ACCESS_KEY_ID is not defined')
}

if (process.env.NEXT_AWS_SECRET_ACCESS_KEY === undefined) {
throw new Error('NEXT_AWS_SECRET_ACCESS_KEY is not defined')
}

const credentials = (process.env.NEXT_AWS_ACCESS_KEY_ID && process.env.NEXT_AWS_SECRET_ACCESS_KEY) ?
{
accessKeyId: process.env.NEXT_AWS_ACCESS_KEY_ID,
Expand Down

0 comments on commit 9baef19

Please sign in to comment.