cherryflavourpez
SolidStart with Headless CMS content
Hello! I'm looking to port a small 11ty site over to SolidStart. I still want to fetch CMS content and generate some static pages once, at build time.
I found this question (and answer): https://github.com/solidjs/solid-start/discussions/1548#discussion-6824754, which will let me achieve SSG with dynamic routes.
But I do not understand where to carry out any data fetching. This question (https://github.com/solidjs/solid-start/discussions/920) asks the same thing; how to fetch data at build and not in the client?
So - I am wanting to fetch an array of pages at build, then use that data to determine the routes and build the pages using SSG. Any pointers/examples much appreciated!
1 replies