Cloudflare WAF is blocking request coming from NextJS build script

I have a NexJs application 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 bot (NextJS CI/CD server) is not possible since I am using Netlify and this IP changes all the time.
I have also tried to create a rule to skip actions on the specific API URL but still sometimes Cloudflare blocks those requests, and the build fails.
Is there any recommended way to fix this problem?


This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.