refactor: rename CUSTOM_ENV_PATH to BUILD_ENV_PATH and default to undefined for dotenv config
This commit is contained in:
parent
ce334cf6f4
commit
4a8c2bed04
|
|
@ -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 = () => {
|
||||
|
|
|
|||
Loading…
Reference in New Issue