refactor: remove explicit env path configuration to use default dotenv behavior

This commit is contained in:
이정수 2026-04-08 11:30:10 +09:00
parent 70ee0671e1
commit 415c5f44ee
1 changed files with 1 additions and 2 deletions

View File

@ -1,8 +1,7 @@
import { config } from 'dotenv'; import { config } from 'dotenv';
import { hostname } from 'os'; import { hostname } from 'os';
const envPath = process.env.BUILD_ENV_PATH; config();
config({ path: envPath });
const generateInstanceId = () => { const generateInstanceId = () => {
return process.env.INSTANCE_ID || hostname() || `kord-${Math.random().toString(36).substring(2, 7)}`; return process.env.INSTANCE_ID || hostname() || `kord-${Math.random().toString(36).substring(2, 7)}`;