From 8b3c58a1624da9a0adff528c8ca830acdd18742f Mon Sep 17 00:00:00 2001 From: Apoorv Mishra Date: Sun, 23 Jul 2023 13:26:13 +0530 Subject: [PATCH] fix: coalesce to empty str --- server/env.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/env.ts b/server/env.ts index 47c71eb09..c768b9abc 100644 --- a/server/env.ts +++ b/server/env.ts @@ -617,7 +617,7 @@ export class Environment { */ @IsOptional() @CannotUseWithout("IFRAMELY_URL") - public IFRAMELY_API_KEY = this.toOptionalString(process.env.IFRAMELY_API_KEY); + public IFRAMELY_API_KEY = process.env.IFRAMELY_API_KEY ?? ""; /** * The product name