Update config.ts

This commit is contained in:
k
2026-09-21 12:09:30 +02:00
parent 330fffc700
commit a5da592fcf
+6 -1
View File
@@ -14,6 +14,10 @@ function envInt(name: string, fallback: number): number {
} }
export const config = { export const config = {
// "production" under the NixOS module / CI builds, "development" locally.
nodeEnv: env("NODE_ENV", "development"),
isProduction: env("NODE_ENV", "development") === "production",
port: envInt("PORT", 3000), port: envInt("PORT", 3000),
host: env("HOST", "127.0.0.1"), host: env("HOST", "127.0.0.1"),
appPassword: env("APP_PASSWORD", ""), appPassword: env("APP_PASSWORD", ""),
@@ -43,7 +47,8 @@ export const config = {
wikiUrl: env("WIKI_URL", "https://git.kisakay.com/k/chat/wiki"), wikiUrl: env("WIKI_URL", "https://git.kisakay.com/k/chat/wiki"),
// Per-driver debug logging to stdout ([driver:name] lines). // Per-driver debug logging to stdout ([driver:name] lines).
driverDebug: envBool("DRIVER_DEBUG", true), // On by default in development, off unless asked for in production.
driverDebug: envBool("DRIVER_DEBUG", !env("NODE_ENV", "development")),
// Local file CDN (avatars today, more namespaces tomorrow). // Local file CDN (avatars today, more namespaces tomorrow).
// Dev default is a folder next to the codebase; NixOS module points it // Dev default is a folder next to the codebase; NixOS module points it