fix: dotenv optional import (prod에서는 k8s env 사용)
Deploy via SSH / remote-deploy (push) Failing after 2s
Deploy via SSH / remote-deploy (push) Failing after 2s
This commit is contained in:
+2
-1
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user