High usage of "requests" in a few hours using next.js
I'm currently experimenting with cloudflare pages on my next.js project which is just a personal site but seems there's already 243 requests on my website.
11 Replies
Functions do say 0 and I was expecting requests to be unlimited on cloudflare pages
Function requests aren’t unlimited but requests for assets are. You should check also check previous deployments and other projects for requests.
I used this to deploy my next.js website https://developers.cloudflare.com/pages/framework-guides/nextjs/deploy-a-nextjs-site/
Cloudflare Docs
Full-stack deployment · Cloudflare Pages docs
Deploy a full-stack Next.js site (recommended).
I don't see any functions in my code as my site is by default static
Unless I don't completely understand what a function / worker is
I also only have 1 deployment and 1 project only
Not sure how nextjs works but there’s a chance some of your stuff does require SSR which is served via functions
could be possible
If the site is static there should be an option for nextjs static export instead, if you use next-on-pages then it runs requests through a Function
Ahhhh
that explains it a lot thanks
Are functions protected against attack if I decide to move to the paid tier? For example: an attack is discovered on my application and makes me rack up several thousand in billing does Cloudflare solve that issue?
There is ddos protection in place, failing that we'd recommend moving to a custom domain and applying Rate Limiting Rules https://developers.cloudflare.com/waf/rate-limiting-rules/
And if that isn't enough and you feel you've been billed for attack traffic, please do reach out to the Billing support team and they can help resolve that
thanks