SolidJSS
SolidJSโ€ข2y agoโ€ข
4 replies
ChrisThornham

What Replaced createRouteData?

In older version of SolidStart you could get all routes in a folder. This was useful for doing things like getting all blog articles. It worked like this:

export const routeData = () => {
  return createRouteData(async () => {
    const files = import.meta.glob('.blog/*.mdx')
  })
}


But createRouteData no longer exists in the latest version of SolidStart. How could I do the same thing with the newest version of SolidStart?

Thanks,

Chris
Was this page helpful?