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!
GitHub
Does SolidStart support SSG with a remote data source? · solidjs so...
Pretty much what the title states. I want to retrieve data during build time from a GraphQL source (Headless CMS). Is that scenario supported somehow? I fear not, but wanted to ask the community be...
GitHub
SSG with dynamic paths · solidjs solid-start · Discussion #1548
Let's say I want to render all my blog post pages at build time (SSG). I would need to dynamically fetch my CMS or DB to get the slug list of all blog post to generate during the build, and the...
0 Replies