next-on-pages automatically creates `_routes.json` and my public folder is already excluded ```json

next-on-pages automatically creates
_routes.json
and my public folder is already excluded
{
  "version": 1,
  "description": "Built with @cloudflare/next-on-pages@1.13.7.",
  "include": ["/*"],
  "exclude": ["/_next/static/*"]
}


(if this is what you mean)
link to docs - https://developers.cloudflare.com/pages/framework-guides/nextjs/ssr/static-assets/
Cloudflare Docs
When you use a JavaScript framework like Next.js on Cloudflare Pages, the framework adapter (ex: @cloudflare/next-on-pages) automatically generates a _routes.json file, which defines specific paths of your app's static assets. This file tells Cloudflare, for these paths, don't run the Worker, you can just serve the static asset on this path (an ...
Was this page helpful?