Instead of using JSON it would be better to use a JS/TS file and define the config using a typed function.