Cloudflare Pages invoking functions on request to static assets in Next.js

I have deployed a fully static next.js website (pages directory of next.js) to cloudflare pages and I have added _routes.json file to root of my project excluding static assets from function invocation. But still my Dashboard is showing the requests made , but it is a fully static site. Is functions directory creating compalsory since all my website is static. Here is my github repo - https://github.com/divrawat/One-Blog
GitHub
GitHub - divrawat/One-Blog
Contribute to divrawat/One-Blog development by creating an account on GitHub.
1 Reply
Chaika
Chaika5mo ago
As you can see from your routes.json, it's only excluding a few files/directories. Next-on-pages requires the use of functions internally to handle the complex next.js routing for specific endpoints/files
Want results from more Discord servers?
Add your server