Skip to content
Discussion options

You must be logged in to vote

You have to add getStaticProps/getStaticPaths to all routes that have dynamic parameters, otherwise they become auto-exported and won't have the locale parameter until after hydration.

The way that you're outlining that you'd expect it to work would mean that we'd have to block routes from rendering, significantly slowing down build times.
On top of that it would not work as expected with fallback: true behavior and incremental static generation.

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@davecardwell
Comment options

@Timer
Comment options

@davecardwell
Comment options

Answer selected by Timer
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help
Labels
None yet
3 participants