Skip to content

Commit

Permalink
fix env var
Browse files Browse the repository at this point in the history
  • Loading branch information
haffi96 committed Oct 14, 2023
1 parent ed1a486 commit 41efffa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/aws/lib/lambda.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ const __dirname = dirname(__filename); // get the name of the directory

dotenvConfig()

const db_url = process.env.ENV === "local" || "dev" ? process.env.DEV_DATABASE_URL : process.env.PROD_DATABASE_URL
const db_url = process.env.ENV === "prod" ? process.env.PROD_DATABASE_URL : process.env.DEV_DATABASE_URL

export class GenericLambda extends NodejsFunction {
constructor(scope: Construct, fileName: string) {
Expand Down

0 comments on commit 41efffa

Please sign in to comment.