Dynamic Routing Enhancements #1692
thescientist13
started this conversation in
Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Merge
getStaticPaths/getStaticPropsSomewhat related, but I observed in Astro, that paths and props can be returned in the
getStaticPathsfunction. Seems more convenient, something we should consider?Dynamic Routing +
getStaticPath+ Content CollectionsComing out of #1675, I was wondering if static paths should be pushed to the graph? Then they could be used in content collections? (would have to figure out how to surface frontmatter meta data though, but even something like Astro just has you make ad-hoc collections (like with our Source Plugin)
https://docs.astro.build/en/guides/content-collections/#building-for-static-output-default
Source Plugin
Now that we have dynamic routing, do we still need the Source Plugin? I suppose as mentioned above regarding
getStaticPaths+ content collections, we would still need it.Also, could be useful for folks that don't like file-based routing.
Beta Was this translation helpful? Give feedback.
All reactions