From 4a8c2bed04bc038a7b0388f61f74741c21be1fcf Mon Sep 17 00:00:00 2001 From: artbiit Date: Tue, 7 Apr 2026 17:55:10 +0900 Subject: [PATCH] refactor: rename CUSTOM_ENV_PATH to BUILD_ENV_PATH and default to undefined for dotenv config --- src/config/env.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/config/env.ts b/src/config/env.ts index 233adda..f16e150 100644 --- a/src/config/env.ts +++ b/src/config/env.ts @@ -1,8 +1,9 @@ import { config } from 'dotenv'; import { hostname } from 'os'; -declare const CUSTOM_ENV_PATH: string; -const envPath = typeof CUSTOM_ENV_PATH !== 'undefined' ? CUSTOM_ENV_PATH : './.env'; +declare const BUILD_ENV_PATH: string; + +const envPath = typeof BUILD_ENV_PATH !== 'undefined' ? BUILD_ENV_PATH : undefined; config({ path: envPath }); const generateInstanceId = () => {