fix: env.mjs [skip-release]
This commit is contained in:
Charles GTE
2026-05-15 23:03:19 +02:00
committed by GitHub
parent 02be78a26e
commit ffba2c56a3
2 changed files with 5 additions and 2 deletions
+3 -2
View File
@@ -1,8 +1,9 @@
import pino, { type Logger } from "pino";
import {env} from "@/env.mjs";
const isProd = process.env.NODE_ENV === "production";
const isProd = env.NODE_ENV === "production";
const defaultLevel = isProd ? "info" : "debug";
const level = (process.env.LOG_LEVEL ?? defaultLevel) as pino.Level;
const level = (env.LOG_LEVEL ?? defaultLevel) as pino.Level;
function getLocalTimestamp() {
const date = new Date();