8112c12092
* make github auth respect email whitelist * display github login errors * fix smtp secure env vars * prevent sending magic link if email not allowed * fix MARQS_DISABLE_REBALANCING and RUN_ENGINE_DEBUG_WORKER_NOTIFICATIONS
10 lines
203 B
TypeScript
10 lines
203 B
TypeScript
import { z } from "zod";
|
|
|
|
export const BoolEnv = z.preprocess((val) => {
|
|
if (typeof val !== "string") {
|
|
return val;
|
|
}
|
|
|
|
return ["true", "1"].includes(val.toLowerCase().trim());
|
|
}, z.boolean());
|