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 = () => {