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"