I have a Cloudflare Pages website built using Next.JS. I’m facing an issue where randomly my website becomes unreachable. It does eventually load but it takes abnormally long - 15+ seconds.
This doesn’t happen always but it’s reproducible every 1/5 times. Also, I am able to reproduce this from several different devices and browsers. My website is a very light and I checked that there are no errors in browser console.
I have run the Cloudflare diagnostics tool for any obvious issues like DNS loops, etc. I suspect that this is a DNS issue because once the site loads, further internal navigation is quick. I’m not sure how to troubleshoot further. Any pointers are appreciated. Thanks!