1
0
mirror of https://github.com/misskey-dev/misskey.git synced 2026-05-18 01:25:47 +02:00
This commit is contained in:
syuilo
2025-12-03 18:29:40 +09:00
parent 55ef4c5faa
commit a75878fe38
2 changed files with 8 additions and 19 deletions

View File

@@ -225,11 +225,7 @@ const dir = `${_dirname}/../../../.config`;
/**
* Path of configuration file
*/
export const path = process.env.MISSKEY_CONFIG_YML
? resolve(dir, process.env.MISSKEY_CONFIG_YML).replace(/\.ya?ml$/i, '.json')
: process.env.NODE_ENV === 'test'
? resolve(dir, 'test.json')
: resolve(dir, 'default.json');
export const path = resolve(dir, '.config.json');
export function loadConfig(): Config {
const meta = JSON.parse(fs.readFileSync(`${_dirname}/../../../built/meta.json`, 'utf-8'));