forked from FoundKeyGang/FoundKey
detect outdated ID generation configuration
This commit is contained in:
parent
5908bb2cd7
commit
e9b11231ff
1 changed files with 2 additions and 0 deletions
|
@ -28,6 +28,8 @@ export default function load() {
|
|||
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;
|
||||
|
||||
if (config.id && config.id !== 'aid') throw new Error('Unsupported ID algorithm. Only "aid" is supported.');
|
||||
|
||||
const mixin = {} as Mixin;
|
||||
|
||||
const url = tryCreateUrl(config.url);
|
||||
|
|
Loading…
Reference in a new issue