diff --git a/Source/Library/Environment.ts b/Source/Library/Environment.ts index 12bc1191f..4942293d2 100644 --- a/Source/Library/Environment.ts +++ b/Source/Library/Environment.ts @@ -1,10 +1,9 @@ -import { config } from "dotenv"; -import { z } from "zod"; +(await import("dotenv")).config(); -config(); - -export default z +export default Zod.z .object({ - Token: z.string().default(""), + Token: Zod.z.string().default(""), }) .parse(process.env); + +export const { default: Zod } = await import("zod");