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.
No description
11 Replies
Lynix
LynixOP9mo ago
Functions do say 0 and I was expecting requests to be unlimited on cloudflare pages
Lynix
LynixOP9mo ago
No description
Cyb3r-Jak3
Cyb3r-Jak39mo ago
Function requests aren’t unlimited but requests for assets are. You should check also check previous deployments and other projects for requests.
Lynix
LynixOP9mo ago
Cloudflare Docs
Full-stack deployment · Cloudflare Pages docs
Deploy a full-stack Next.js site (recommended).
Lynix
LynixOP9mo ago
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
Cyb3r-Jak3
Cyb3r-Jak39mo ago
Not sure how nextjs works but there’s a chance some of your stuff does require SSR which is served via functions
Lynix
LynixOP9mo ago
could be possible
Erisa
Erisa9mo ago
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
Lynix
LynixOP9mo ago
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?
Erisa
Erisa9mo ago
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
Lynix
LynixOP9mo ago
thanks
Want results from more Discord servers?
Add your server