7 ms·
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-
by dschuessler 1y ago
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 https://docs.astro.build/en/guides/routing/#static-ssg-mode
- threetonesun 1y agoI 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.
- teekoiv 1y agoYeah, what the other commenter said. getStaticPaths still requires you to define the rendered routes build-time
- shepherdjerred 1y agohttps://astro.build/blog/live-content-collections-deep-dive/ https://astro.build/blog/live-content-collections-deep-dive/
- teekoiv 1y agoThat's cool but I fail to see how this results in 100% static bundle.
- shepherdjerred 1y agoafaik astro will serve a live collection as a static HTML file (unless you explicitly include JS)
- deleted 1y ago[deleted]