@ornate vale I'm using Storyblok for CMS and it does something peculiar. Where I want files (or pages/stories) organized and so put them in corresponding folder. What Storyblok does is, aparently still send a "root index" on to Astro as long as there are children pages inside folder despite my not having defined or created any page as root of the folder.
As a sample, I have a directory called "legal" in Storyblok. And then inside this directory, I have pages that outputs as "/legal/terms", "/legal/privacy", etc. In some cases, I'd created a page, say /legal and assign it as "root of the folder" as per Storyblok definition. In that case, /legal becomes an active route and is available.
But in this case, I have no such root file, but Storyblok still apparently sends it off to Astro so getStaticPaths includes a /legal as an existing route, which then 404's since there's no corresponding/matching route or page content.
That make sense?
So, how do I either prevent Storyblok from doing this across board, as in, not output a path at the root of a folder except a page is explicitly defined for such. Or, prevent Astro for building routes for which no page exists?