next-on-pages and modifying routes
So I only want page functions to run whenever I hit my nextjs API route, how can I do this?
_routes.json file to tell Cloudflare when to invoke the worker script, however, excluding some of your routes has an incredibly high chance of completely breaking the routing process for matching your request to the right page. I would not recommend interfering with how the routing system works._next/static/*, which include all the chunk files used by pages, CSS, fonts, etc. If you're referring to just certain static assets, yeah, they might be safe to exclude, but it's still not necessarily advised.favicon.ico are treated when placed in the app directory, which we have to add custom behaviour during build time to change.
, which will again significantly change how the routing process works to much more closely align with how Vercel treats routing._next/static/*favicon.ico