Fix build errors
This commit is contained in:
@@ -26,7 +26,6 @@ function formatErrors(errors: z.ZodFormattedError<Map<string, string>, string>)
|
||||
const parsed = serverSchema.safeParse(process.env);
|
||||
if (!parsed.success) {
|
||||
// Fail fast with helpful output in server context
|
||||
// eslint-disable-next-line no-console
|
||||
console.error("❌ Invalid environment variables:\n" + formatErrors(parsed.error.format()));
|
||||
throw new Error("Invalid environment variables");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user