How to rate limit NextJS-on-pages requests to different API?

I have a nextjs project that makes server-side requests to a different API I have protected by cloudflare. I want to create a cloudflare rate-limiting rule for some of my API endpoints, but noticed that the IP address cloudflare was picking up was the pages-worker IP instead of the end-user's IP.
0 Replies
No replies yetBe the first to reply to this messageJoin
Want results from more Discord servers?
Add your server