Open sitch opened 1 year ago
Thanks @sitch. If there is sufficient interest in this I’ll look into implementation options. I’m curious to see what the next team’s solution for static sites will look like with the app directory and server components.
Sounds good -- I just saw this https://nextjs.org/blog/next-13-2#statically-typed-links
Yep, that only works for app directory (not pages) but if that works for your project LMK how it goes.
For dynamic routes that export
getStaticPaths
it would be useful to have a config setting to enable automatic translation fromDynamicRoute
->StaticRoute
.You definitely want this off by default in case it's an expensive operation
Example
Give the page/pathname:
which exports
getStaticPaths
:Now, instead of just:
You get:
Note
One small detail is that if you have
fallback: false
The
DynamicRoute
should be omitted: