Does Fresh Framework have a feature like Next.js's getStaticPaths and generateStaticParams to statically generate routes at build time? #2267
Unanswered
m7medVision
asked this question in
Q&A
Replies: 1 comment 4 replies
-
|
No, because the Fresh-y way of doing things is just-in-time rendering rather than having a build step. So, the way to respond dynamically to routes with parameterized URLs is to have a route like If you give me an example of what you would do with getStaticPaths I can give you a more detailed explanation. |
Beta Was this translation helpful? Give feedback.
4 replies
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.
Uh oh!
There was an error while loading. Please reload this page.
-
I've structured my Fresh app to include a [slug].tsx file that renders .md files for blog-like content. However, I think this not efficient way, as the server seems to re-render the same content for each request.
Does Fresh Framework have a feature like Next.js's getStaticPaths and generateStaticParams to statically generate routes at build time?
Beta Was this translation helpful? Give feedback.
All reactions