forked from FoundKeyGang/FoundKey
fix: loading config
This commit is contained in:
parent
06ef752218
commit
3489c8ac3a
1 changed files with 1 additions and 1 deletions
|
@ -26,7 +26,7 @@ const path = process.env.NODE_ENV === 'test'
|
|||
export default function load(): Config {
|
||||
const meta = JSON.parse(fs.readFileSync(`${_dirname}/../../../../built/meta.json`, 'utf-8'));
|
||||
const clientManifest = JSON.parse(fs.readFileSync(`${_dirname}/../../../../built/_client_dist_/manifest.json`, 'utf-8'));
|
||||
const config = yaml.load(fs.readFileSync(path, 'utf-8')) as Source;
|
||||
let config = yaml.load(fs.readFileSync(path, 'utf-8')) as Source;
|
||||
|
||||
if (config.id && config.id !== 'aid') throw new Error('Unsupported ID algorithm. Only "aid" is supported.');
|
||||
|
||||
|
|
Loading…
Reference in a new issue