Config Migration Guide

step1: add this helper function:

function format(responseAdminConfig, responsePublicConfig = {result : {connections: []}}) {
      const config = JSON.parse(JSON.stringify(responseAdminConfig.result, (key, val) => {
          if (val && typeof val === "object" && "label" in val && "value" in val) {
              return val.value;
          }
          return val;
      }, 2));
      config.connections = responsePublicConfig.result.connections;
      delete config.constant;
      console.log(JSON.stringify(config, null, 4))
}

step2: copy the response from /admin/api/config:

const a = {
    "status": "ok",
    "result": {
        ...
     }
}

step3: copy the response from /api/config

const b = {
    "status": "ok",
    "result": {
        ....
    }
}

step4: get your config

format(a, b);