-
Notifications
You must be signed in to change notification settings - Fork 10
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Server side routes should support dynamic route naming (with prerendering) #882
Labels
Milestone
Comments
12 tasks
Some other examples of this:
This feature would be one of several use cases for Content as Data. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Type of Change
Summary
Should support any route like
/artist/${name}/
without needing to know all the URLs up front.Details
With this, I think we would also then be able to implement something akin to Next.js'
getStaticPaths
API, which could allow users to export a bunch of static content from this dynamic route definition.With this data, Greenwood can invoke the page for as many static versions of the page the user wants using:
request
as the "constructor prop" to pass into the page componentname
as the output filename, based on filesystem based routing, e.g. pages/artist/[name].jsEffectively this would / could be an alternative and / or complete deprecation of the sources plugin and perhaps revisit workflows around this overall.
The text was updated successfully, but these errors were encountered: