fix: remove debug logs in production

This commit is contained in:
Nicolas Meienberger
2025-12-04 18:46:12 +01:00
parent 6b6338291b
commit 77f5886110
5 changed files with 9 additions and 8 deletions

View File

@@ -2,12 +2,10 @@ import { type } from "arktype";
import "dotenv/config";
const envSchema = type({
NODE_ENV: type.enumerated("development", "production", "test").default("development"),
SESSION_SECRET: "string?",
NODE_ENV: type.enumerated("development", "production", "test").default("production"),
}).pipe((s) => ({
__prod__: s.NODE_ENV === "production",
environment: s.NODE_ENV,
sessionSecret: s.SESSION_SECRET || "change-me-in-production-please",
}));
const parseConfig = (env: unknown) => {