refactor: remove explicit env path configuration to use default dotenv behavior
This commit is contained in:
parent
70ee0671e1
commit
415c5f44ee
|
|
@ -1,8 +1,7 @@
|
||||||
import { config } from 'dotenv';
|
import { config } from 'dotenv';
|
||||||
import { hostname } from 'os';
|
import { hostname } from 'os';
|
||||||
|
|
||||||
const envPath = process.env.BUILD_ENV_PATH;
|
config();
|
||||||
config({ path: envPath });
|
|
||||||
|
|
||||||
const generateInstanceId = () => {
|
const generateInstanceId = () => {
|
||||||
return process.env.INSTANCE_ID || hostname() || `kord-${Math.random().toString(36).substring(2, 7)}`;
|
return process.env.INSTANCE_ID || hostname() || `kord-${Math.random().toString(36).substring(2, 7)}`;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue