fix: remove minimum length requirement for AUTH_SECRET for maximum compatibility

This commit is contained in:
ralksta
2026-03-07 09:35:40 +01:00
parent f790aa3268
commit 277aab54e1

View File

@@ -31,7 +31,7 @@ const envSchema = z.object({
* Secret used for signing auth cookies and encrypting asset tokens. * Secret used for signing auth cookies and encrypting asset tokens.
* If not provided, IMMICH_API_KEY will be used as a fallback (configured in config.ts). * If not provided, IMMICH_API_KEY will be used as a fallback (configured in config.ts).
*/ */
AUTH_SECRET: z.string().min(16, 'AUTH_SECRET should be at least 16 characters').optional(), AUTH_SECRET: z.string().optional(),
}); });
export type Env = z.infer<typeof envSchema>; export type Env = z.infer<typeof envSchema>;