On Express.js, you do
// see https://expressjs.com/en/guide/behind-proxies.html
app.set('trust proxy', 1);
I am trying to add a ratelimit, and it's a Express middleware, which Next.js support, but I need to allow proxies on my Next.js app. I have tried googling but I haven't found anything helpful.