Hello, any idea why Cloudflare function has such strong limitations on `_routes.json` ? https://deve

Hello, any idea why Cloudflare function has such strong limitations on
_routes.json
? https://developers.cloudflare.com/pages/platform/functions/routing/#limits

Limits

You may have no more than 100 include/exclude rules combined.
Each rule may have no more than 100 characters.

For example, my team is using Astro (the framework) to generate a static site (SSG) and Astro is dumping routes such as:

{
  "version": 1,
  "include": [
    "/*"
  ],
  "exclude": [
    "/_astro/_slug_.48022e81.css",
    "/_astro/client.ee7b9fdd.js",
    "/articles/5-races-de-chiens-deconseillees-si-vous-n-avez-jamais-eu-de-chien-video/",
    "/articles/10-choses-amusantes-sur-les-chats-a-savoir-absolument/"
  ]
}


The issue is that the Article slug is sometimes very long and we hit the 100 caracter limit (which is a very short limit for URI, but even wayyyy shorter for a complete path/url)

Also the 100 include/exclude rules combined would mean that our blog cannot contains more than 100 articles ?

Is astro using in the wrong way Cloudflare feautres or are those strong limits known among developpers using cloudflare ?
Was this page helpful?