diff --git a/apps/api/src/config/env.validators.ts b/apps/api/src/config/env.validators.ts index 48b59e78f55..e6f834a2d76 100644 --- a/apps/api/src/config/env.validators.ts +++ b/apps/api/src/config/env.validators.ts @@ -56,7 +56,10 @@ 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({ default: undefined }), // Feature Flags + ...(processEnv.NOVU_ENTERPRISE === 'true' && { + PLAIN_SUPPORT_KEY: str(), + }), + // Feature Flags ...Object.keys(FeatureFlagsKeysEnum).reduce( (acc, key) => { return {