fix: createEnv by adding emptyStringAsUndefined (#317)

This commit is contained in:
Charles GTE
2026-06-10 17:50:04 +02:00
committed by GitHub
parent ebdef2d302
commit b70a8c8a16
2 changed files with 4 additions and 1 deletions
+2
View File
@@ -6,6 +6,7 @@ import packageJson from "../package.json" with {type: "json"};
const {version} = packageJson; const {version} = packageJson;
export const env = createEnv({ export const env = createEnv({
emptyStringAsUndefined: true,
server: { server: {
NEXT_PUBLIC_PROJECT_VERSION: z.string().optional(), NEXT_PUBLIC_PROJECT_VERSION: z.string().optional(),
@@ -199,3 +200,4 @@ export const env = createEnv({
}, },
}); });
+2 -1
View File
@@ -33,7 +33,8 @@
"**/*.ts", "**/*.ts",
"**/*.tsx", "**/*.tsx",
".next/types/**/*.ts", ".next/types/**/*.ts",
".next/dev/types/**/*.ts" ".next/dev/types/**/*.ts",
".next/dev/dev/types/**/*.ts"
], ],
"exclude": [ "exclude": [
"node_modules" "node_modules"