From ba010247c3d666c74f69f4231e1a39ad63f07c70 Mon Sep 17 00:00:00 2001 From: Nikola Hristov Date: Sat, 14 Oct 2023 16:57:38 +0300 Subject: [PATCH] squash! --- Source/Library/Environment.ts | 11 +++++------ astro.config.ts | 3 ++- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/Source/Library/Environment.ts b/Source/Library/Environment.ts index 12bc1191..4942293d 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"); diff --git a/astro.config.ts b/astro.config.ts index 5af70357..36be1b7a 100644 --- a/astro.config.ts +++ b/astro.config.ts @@ -19,4 +19,5 @@ export default (await import("astro/config")).defineConfig({ sourcemap: true, }, }, -}); + // biome-ignore lint/suspicious/noExplicitAny: +}) as any;