diff --git a/packages/twenty-server/src/engine/core-modules/environment/environment-variables.ts b/packages/twenty-server/src/engine/core-modules/environment/environment-variables.ts index a50ef42804..888540b5fc 100644 --- a/packages/twenty-server/src/engine/core-modules/environment/environment-variables.ts +++ b/packages/twenty-server/src/engine/core-modules/environment/environment-variables.ts @@ -447,8 +447,9 @@ export class EnvironmentVariables { @CastToPositiveNumber() CACHE_STORAGE_TTL: number = 3600 * 24 * 7; - @ValidateIf((env) => env.ENTERPRISE_KEY) - SESSION_STORE_SECRET: string; + @IsString() + @IsOptional() + SESSION_STORE_SECRET = 'replace_me_with_a_random_string_session'; @CastToBoolean() CALENDAR_PROVIDER_GOOGLE_ENABLED = false;