refactor: rename CUSTOM_ENV_PATH to BUILD_ENV_PATH and default to undefined for dotenv config

This commit is contained in:
이정수 2026-04-07 17:55:10 +09:00
parent ce334cf6f4
commit 4a8c2bed04
1 changed files with 3 additions and 2 deletions

View File

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