refactor: replace build-time constant with process.env for environment path configuration
This commit is contained in:
parent
4a8c2bed04
commit
70ee0671e1
|
|
@ -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 = () => {
|
||||
|
|
|
|||
Loading…
Reference in New Issue