forked from FoundKeyGang/FoundKey
BREAKING rename environment variables from MK_... to FK_...
Changelog: Changed
This commit is contained in:
parent
e6a8173378
commit
efa8305e0b
1 changed files with 1 additions and 1 deletions
|
@ -18,7 +18,7 @@ export const envOption = {
|
|||
};
|
||||
|
||||
for (const key of Object.keys(envOption) as (keyof typeof envOption)[]) {
|
||||
const value = process.env['MK_' + key.replace(/[A-Z]/g, letter => `_${letter}`).toUpperCase()];
|
||||
const value = process.env['FK_' + key.replace(/[A-Z]/g, letter => `_${letter}`).toUpperCase()];
|
||||
if (value) {
|
||||
if (key === 'logLevel') {
|
||||
if (value.toLowerCase() in LOG_LEVELS) {
|
||||
|
|
Loading…
Reference in a new issue