This may not be exactly what you’re looking for, but I changed my api.js in the config folder to increase the maximum pageSize to a very high number (i.e. 1000), which you could also set as the defaultLimit if you wanted.
module.exports = {
rest: {
defaultLimit: 25,
maxLimit: 1000,
withCount: true,
},
};