From d11d360cbf4679bbef7ad93fd37f0d99f0709bf5 Mon Sep 17 00:00:00 2001 From: Owen Date: Mon, 13 Jul 2026 20:25:52 +0200 Subject: [PATCH] print mopre detailed error logs --- src/env.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/env.ts b/src/env.ts index 54582f1..56e379c 100644 --- a/src/env.ts +++ b/src/env.ts @@ -27,6 +27,7 @@ const getEnv = () => { const _env = fullSchema.safeParse(rawEnv); if (!_env.success) { console.error("❌ Invalid Server Environment Variables:"); + console.error(JSON.stringify(_env.error.format(), null, 2)); throw new Error("Invalid environment variables"); } return _env.data; @@ -34,6 +35,7 @@ const getEnv = () => { const _env = clientSchema.safeParse(rawEnv); if (!_env.success) { console.error("❌ Invalid Client Environment Variables:"); + console.error(JSON.stringify(_env.error.format(), null, 2)); throw new Error("Invalid environment variables"); } return _env.data as z.infer;