From 262dc828541c88cb10523780813f5d78780139cc Mon Sep 17 00:00:00 2001 From: Joshua Melville Date: Tue, 10 Oct 2023 21:10:00 +0200 Subject: [PATCH] update env schema --- env.mjs | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/env.mjs b/env.mjs index 53e19b51..33adef3e 100644 --- a/env.mjs +++ b/env.mjs @@ -9,10 +9,6 @@ export const env = createEnv({ */ server: { DATABASE_URL: z.string().url(), - NODE_ENV: z - .enum(["development", "test", "production"]) - .default("development"), - VERCEL_URL: z.string().url().optional(), }, /** @@ -20,10 +16,10 @@ export const env = createEnv({ * isn't built with invalid env vars. To expose them to the client, prefix them with * `NEXT_PUBLIC_`. */ - client: { - NEXT_PUBLIC_URL: z.string().url(), - }, + client: {}, shared: { + NEXT_PUBLIC_URL: z.string().url().optional(), + VERCEL_URL: z.string().optional(), NODE_ENV: z .enum(["development", "test", "production"]) .default("development"),