Astro hybrid website - Detected rules that are over the 100 rule limit.

I have an Astro hybrid website (static and SSR) that will have over 300 static pages on Cloudflare Pages, with also some SSR functions. Cloudflare is throwing this error on build:

Invalid _routes.json file found at: Detected rules that are over the 100 rule limit. Please make sure you have a total of 100 include and exclude rules combined.

I believe astro creates this _routes.json file to make sure the static routes are not invoked by workers, is there a way around this for sites with 100+ static pages?
Was this page helpful?