refactor: replace build-time constant with process.env for environment path configuration

This commit is contained in:
이정수 2026-04-08 10:34:45 +09:00
parent 4a8c2bed04
commit 70ee0671e1
1 changed files with 1 additions and 3 deletions

View File

@ -1,9 +1,7 @@
import { config } from 'dotenv';
import { hostname } from 'os';
declare const BUILD_ENV_PATH: string;
const envPath = typeof BUILD_ENV_PATH !== 'undefined' ? BUILD_ENV_PATH : undefined;
const envPath = process.env.BUILD_ENV_PATH;
config({ path: envPath });
const generateInstanceId = () => {