mirror of
https://github.com/twentyhq/twenty.git
synced 2024-11-22 03:17:40 +03: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:
parent
6a977ad529
commit
ba847292b6
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user