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;
export const env = createEnv({
emptyStringAsUndefined: true,
server: {
NEXT_PUBLIC_PROJECT_VERSION: z.string().optional(),
@@ -199,3 +200,4 @@ export const env = createEnv({
},
});