#Cloudflare-pages 100 rule _routes.json limit
2 messages · Page 1 of 1 (latest)
Based on the provided knowledge sources, there is no explicit documentation on directly controlling or customizing how Nuxt or Nitro generates the _routes.json file for Cloudflare Pages, specifically regarding the inclusion or exclusion patterns for static assets like .png, .jpg, or .svg files.
However, here are some relevant points from the sources:
- Nuxt allows you to control which files are considered pages using the
pages.patternoption in yournuxt.config.ts, but this only affects Vue page files, not static assets or the generation of_routes.jsonfor Cloudflare Pages [pages pattern config]. - The
.nuxtignorefile can be used to ignore files during the build phase, but it is intended for source files, not for controlling the output or the contents of_routes.json[.nuxtignore docs]. - There is no mention in the sources of a configuration option in Nuxt or Nitro that allows you to wildcard or otherwise customize the exclude/include patterns for static assets in the generated
_routes.jsonfor Cloudflare Pages.