fix: dotenv optional import (prod에서는 k8s env 사용)
Deploy via SSH / remote-deploy (push) Failing after 2s

This commit is contained in:
chpark
2026-04-23 01:09:39 +09:00
parent cfd550bed8
commit 0517109c26
+2 -1
View File
@@ -1,4 +1,5 @@
import 'dotenv/config';
// Load .env when running locally; no-op when env is injected by k8s
try { require('dotenv/config'); } catch {}
import { buildApp } from './app';
const PORT = Number(process.env.PORT ?? 4000);