Any ideas how to prerender a list of dynamic routes in SvelteKit whose slugs are saved in the database? In config.kit.prerender I can list them, but currently it's hard coded. Not sure if it's good to query the database for the build step? I could have a secret page with links to all these routes...
Post
You are right, surely it accesses the DB. What I meant is that the call probably should not happen in the svelte.config.js file. But yeah the entries function provides a good solution, I completely forgot about that one! 🦆
0 reposts0 likes
No replies yet.