From 277aab54e18d9094f0fcc48f5e79de0024470404 Mon Sep 17 00:00:00 2001 From: ralksta Date: Sat, 7 Mar 2026 09:35:40 +0100 Subject: [PATCH] fix: remove minimum length requirement for AUTH_SECRET for maximum compatibility --- lib/env.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/env.ts b/lib/env.ts index 5ae3f4d..e72e355 100644 --- a/lib/env.ts +++ b/lib/env.ts @@ -31,7 +31,7 @@ const envSchema = z.object({ * 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). */ - 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;