BREAKING rename environment variables from MK_... to FK_...

Changelog: Changed
This commit is contained in:
Johann150 2023-05-23 19:49:10 +02:00
parent e6a8173378
commit efa8305e0b
Signed by untrusted user: Johann150
GPG key ID: 9EE6577A2A06F8F1

View file

@ -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) {