detect outdated ID generation configuration

This commit is contained in:
Johann150 2022-07-11 16:07:41 +02:00
parent 9b90eca157
commit 31d0446f86
Signed by: Johann150
GPG key ID: 9EE6577A2A06F8F1

View file

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