mirror of
https://github.com/twentyhq/twenty.git
synced 2024-11-22 11:43:34 +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()
|
@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;
|
||||||
|
Loading…
Reference in New Issue
Block a user