Skip to content

The open alternative to Salesforce, designed for AI.

refactor: add default fallback for session store secret (#8553)

Antoine Moreauxba847292b621
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 a50ef428048..888540b5fca 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;