mirror of
https://github.com/BluemediaDev/muse.git
synced 2025-06-27 09:12:43 +02:00
Feat: allow users to change dotenv file with env var
This facilitates the usage of docker secrets for the keys/tokens.
This commit is contained in:
parent
29b61cc0b6
commit
3d7a85843f
1 changed files with 1 additions and 1 deletions
|
@ -5,7 +5,7 @@ import path from 'path';
|
|||
import xbytes from 'xbytes';
|
||||
import {ConditionalKeys} from 'type-fest';
|
||||
import {ActivityType, PresenceStatusData} from 'discord.js';
|
||||
dotenv.config();
|
||||
dotenv.config({path: process.env.ENV_FILE ?? path.resolve(process.cwd(), '.env')});
|
||||
|
||||
export const DATA_DIR = path.resolve(process.env.DATA_DIR ? process.env.DATA_DIR : './data');
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue