From c5f8fa616cbf53e607d4d0a644ad8b00d3ed9cde Mon Sep 17 00:00:00 2001 From: Pawan Jain Date: Thu, 7 Nov 2024 16:44:54 +0530 Subject: [PATCH] fix: add novu enterprise check with plain support key env --- apps/api/src/config/env.validators.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/apps/api/src/config/env.validators.ts b/apps/api/src/config/env.validators.ts index e50279dcc6e..d50ba29ac2b 100644 --- a/apps/api/src/config/env.validators.ts +++ b/apps/api/src/config/env.validators.ts @@ -52,7 +52,9 @@ export const envValidators = { NOVU_INVITE_TEAM_MEMBER_NUDGE_TRIGGER_IDENTIFIER: str({ default: undefined }), HUBSPOT_INVITE_NUDGE_EMAIL_USER_LIST_ID: str({ default: undefined }), HUBSPOT_PRIVATE_APP_ACCESS_TOKEN: str({ default: undefined }), - PLAIN_SUPPORT_KEY: str(), + ...(process.env.NOVU_ENTERPRISE === 'true' && { + PLAIN_SUPPORT_KEY: str(), + }), // Feature Flags ...Object.keys(FeatureFlagsKeysEnum).reduce( (acc, key) => {