From 70ee0671e1552d2b596844e9376d17fcfac1a596 Mon Sep 17 00:00:00 2001 From: artbiit Date: Wed, 8 Apr 2026 10:34:45 +0900 Subject: [PATCH] refactor: replace build-time constant with process.env for environment path configuration --- src/config/env.ts | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/config/env.ts b/src/config/env.ts index f16e150..91e6480 100644 --- a/src/config/env.ts +++ b/src/config/env.ts @@ -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 = () => {