Replies: 1 comment
-
How did you that? |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
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 then loop into those slugs to render those pages statically.
In Nextjs, this can be done with generateStaticParams.
I couldn't find a way to achieve this neither in the Solid nor in the Vinxi docs, but loooking a bit how it's done under the hood, I found that this works:
In app.config.ts:
Is this the official way to SSG with dynamic paths?
Beta Was this translation helpful? Give feedback.
All reactions