From b70a8c8a16a9eea99e7b452532c2b8f83cd02b7b Mon Sep 17 00:00:00 2001 From: Charles GTE Date: Wed, 10 Jun 2026 17:50:04 +0200 Subject: [PATCH] fix: createEnv by adding emptyStringAsUndefined (#317) --- src/env.mjs | 2 ++ tsconfig.json | 3 ++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/src/env.mjs b/src/env.mjs index 46155d10..e0c09d92 100644 --- a/src/env.mjs +++ b/src/env.mjs @@ -6,6 +6,7 @@ import packageJson from "../package.json" with {type: "json"}; const {version} = packageJson; export const env = createEnv({ + emptyStringAsUndefined: true, server: { NEXT_PUBLIC_PROJECT_VERSION: z.string().optional(), @@ -199,3 +200,4 @@ export const env = createEnv({ }, }); + diff --git a/tsconfig.json b/tsconfig.json index 877b650f..a8f9c637 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -33,7 +33,8 @@ "**/*.ts", "**/*.tsx", ".next/types/**/*.ts", - ".next/dev/types/**/*.ts" + ".next/dev/types/**/*.ts", + ".next/dev/dev/types/**/*.ts" ], "exclude": [ "node_modules"