Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Maybe I am misunderstanding you, but isn't this what Astro's `getStaticPaths`[0] function is for?

[0]: `https://docs.astro.build/en/guides/routing/#static-ssg-mode



I think since they used [todoId] in the example they mean a static page which does not exist at build time. Which both can do, it’s called ISG (or on-demand in the Astro docs), but it requires a server to work, or you can create a static route that accepts any parameters and pass those to JavaScript to run on the client.


Yeah, what the other commenter said. getStaticPaths still requires you to define the rendered routes build-time



That's cool but I fail to see how this results in 100% static bundle.


afaik astro will serve a live collection as a static HTML file (unless you explicitly include JS)




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: