🐛 Fix env transformation

This commit is contained in:
Manuel 2023-05-22 21:32:25 +02:00
parent 1b61349027
commit 569143bb3c

View File

@ -24,7 +24,7 @@ export const environmentVariablesSchema = z.object({
ALLOW_EVERYONE_FOR_DEFAULT_PERMS: z ALLOW_EVERYONE_FOR_DEFAULT_PERMS: z
.enum(['true', 'false']) .enum(['true', 'false'])
.default('false') .default('false')
.transform((value) => Boolean(value)), .transform((value) => value === 'true'),
}); });
export const getEnvironmentVariables = () => { export const getEnvironmentVariables = () => {