From f178a4f60047ec45d4e2e66fb92915e317d4e56c Mon Sep 17 00:00:00 2001 From: Tomas Francisco <4301103+tomasfrancisco@users.noreply.github.com> Date: Mon, 19 Aug 2024 17:59:04 +0200 Subject: [PATCH] mark node_env var as optional --- apps/dashboard/src/config.ts | 2 +- packages/database/src/config.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/dashboard/src/config.ts b/apps/dashboard/src/config.ts index cad12ff..798a1c5 100644 --- a/apps/dashboard/src/config.ts +++ b/apps/dashboard/src/config.ts @@ -3,7 +3,7 @@ import { z } from 'zod'; export const env = createEnv({ server: { - NODE_ENV: z.enum(['development', 'test', 'production']), + NODE_ENV: z.enum(['development', 'test', 'production']).optional(), GITHUB_APP_ID: z.string().min(1), GITHUB_APP_PRIVATE_KEY: z.string().min(1), GITHUB_APP_CLIENT_ID: z.string().min(1), diff --git a/packages/database/src/config.ts b/packages/database/src/config.ts index 7c5e10e..24f4245 100644 --- a/packages/database/src/config.ts +++ b/packages/database/src/config.ts @@ -7,7 +7,7 @@ loadEnvConfig(process.cwd()); export const env = createEnv({ server: { POSTGRES_URL: z.string().url(), - NODE_ENV: z.enum(['development', 'test', 'production']), + NODE_ENV: z.enum(['development', 'test', 'production']).optional(), }, runtimeEnv: process.env, emptyStringAsUndefined: true,