Skip to content

Commit

Permalink
Fix envs
Browse files Browse the repository at this point in the history
  • Loading branch information
ChewingGlass committed Oct 17, 2023
1 parent dcdd918 commit 03631e6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/entity-invalidator/src/env.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ export const AWS_REGION = process.env.AWS_REGION;
export const CLOUDFRONT_DISTRIBUTION = process.env.CLOUDFRONT_DISTRIBUTION!;

// Check for required environment variables
const requiredEnvVars = ["AWS_REGION", "S3_BUCKET"];
const requiredEnvVars = ["AWS_REGION", "CLOUDFRONT_DISTRIBUTION"];
for (const varName of requiredEnvVars) {
if (!process.env[varName]) {
throw new Error(`Environment variable ${varName} is required`);
Expand Down

0 comments on commit 03631e6

Please sign in to comment.