feat(logging): add log level env variable (#2299)

This commit is contained in:
Meier Lukas authored and GitHub committed 2025-02-18 22:54:15 +01:00
1 parent 6420feee72
commit 67d48e11d7
31 files changed
+202 -183

No files matched your search

+9
View File
@@ -0,0 +1,9 @@
import { createEnv as createEnvT3 } from "@t3-oss/env-nextjs";
export const defaultEnvOptions = {
emptyStringAsUndefined: true,
skipValidation:
Boolean(process.env.CI) || Boolean(process.env.SKIP_ENV_VALIDATION) || process.env.npm_lifecycle_event === "lint",
} satisfies Partial<Parameters<typeof createEnvT3>[0]>;
export const createEnv: typeof createEnvT3 = (options) => createEnvT3({ ...defaultEnvOptions, ...options });