Hello,
I have a NexJs application (https://theboat-db.netlify.app/) that has a lot of statically generated pages (300+). When those pages are generated, they need to call some API to get page data. Since my API is protected by Cloudflare sometime those API requests get blocked by WAF since they are bot requests (NextJS build script).
Allowlisting the IP of the bot (NextJS CI/CD server) is not possible since I am using Netlify and this IP changes all the time.
Is there any recommended way to fix this problem?
Can I get the dynamic IP on the build time so I can add this IP to whitelist of Cloudflare with API?
Thanks