#Cloudflare-pages 100 rule _routes.json limit

2 messages · Page 1 of 1 (latest)

ebon schoonerBOT
#

Hi @stone frigate. I'm kapa.ai, your friendly support bot. I will try to answer your question by searching through the knowledge base. :wave:

#

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.pattern option in your nuxt.config.ts, but this only affects Vue page files, not static assets or the generation of _routes.json for Cloudflare Pages [pages pattern config].
  • The .nuxtignore file 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.json for Cloudflare Pages.

Summary:
I'm sorry, but the knowledge sources do not contain information about controlling or customizing the generation of _routes.json (specifically the exclude/include patterns for static assets) in Nuxt or Nitro for Cloudflare Pages. You may need to consult the Nuxt or Nitro issue trackers or documentation updates for more details or possible workarounds.

Note: you can ask me a follow up question by @ mentioning me again :speech_balloon: