allow specifying portalConfig and its items in the config object