mirror of
				https://github.com/lingble/twenty.git
				synced 2025-10-30 20:27:55 +00:00 
			
		
		
		
	refactor: add default fallback for session store secret (#8553)
**Description:** - Add default fallback for session store secret. - Updated SESSION_STORE_SECRET validation to be optional and of type string.
This commit is contained in:
		| @@ -447,8 +447,9 @@ export class EnvironmentVariables { | |||||||
|   @CastToPositiveNumber() |   @CastToPositiveNumber() | ||||||
|   CACHE_STORAGE_TTL: number = 3600 * 24 * 7; |   CACHE_STORAGE_TTL: number = 3600 * 24 * 7; | ||||||
|  |  | ||||||
|   @ValidateIf((env) => env.ENTERPRISE_KEY) |   @IsString() | ||||||
|   SESSION_STORE_SECRET: string; |   @IsOptional() | ||||||
|  |   SESSION_STORE_SECRET = 'replace_me_with_a_random_string_session'; | ||||||
|  |  | ||||||
|   @CastToBoolean() |   @CastToBoolean() | ||||||
|   CALENDAR_PROVIDER_GOOGLE_ENABLED = false; |   CALENDAR_PROVIDER_GOOGLE_ENABLED = false; | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 Antoine Moreaux
					Antoine Moreaux