routes.json limit

Hi, we are developing a site with astro and we are currently exceeding the limits for routes.json
Error: Failed to publish your Function. Got error: Error 8000057: Rules in `_routes.json` are over the 100 rule limit. Refer to https://cfl.re/3FsE4aF.
Error: Failed to publish your Function. Got error: Error 8000057: Rules in `_routes.json` are over the 100 rule limit. Refer to https://cfl.re/3FsE4aF.
We are on a free plan for noe as we are in development. However we looking to launch in october. Our "exclude" list has almost 600 entries. Can we pay to allow a larger amount of entries? (I looked but could not find any information on this)
2 Replies
Hello, I’m Allie!
IIRC it is a technical limit, so it can’t be raised at all. One thing that can help is to optimize your routes a bit. There's the command wrangler pages functions optimize-routes, which can do some stuff automatically, but otherwise you need to try to consolidate some routes.
petter
petterOP16mo ago
Oh a technical har limit, darn! I have not verified but, I think it is astro putting a lot of the «from path» enteies in our redirects there. I hope I can find a way around it. Thanks for the fast reply.
Want results from more Discord servers?
Add your server