Skip to content

Commit

Permalink
checking private_key undefined error #1
Browse files Browse the repository at this point in the history
  • Loading branch information
Puneet-NJ committed Jan 17, 2025
1 parent 4fc5678 commit 261c262
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions backend/src/v1/utils/aws.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,12 @@ import { getSignedUrl } from "aws-cloudfront-sign";

let s3: AWS.S3;

console.log(process.env.CF_PRIVATE_KEY);
const privatekey = process.env.CF_PRIVATE_KEY as string;

const cfSigningParams = {
keypairId: process.env.CF_PUBLIC_KEY as string,
privateKeyString: (process.env.CF_PRIVATE_KEY as string).replace(
/\\n/g,
"\n"
),
privateKeyString: privatekey.replace(/\\n/g, "\n"),
};

const initilizeAws = () => {
Expand Down

0 comments on commit 261c262

Please sign in to comment.