Skip to content

Next 9.3 Locale getStaticPaths #11104

Discussion options

You must be logged in to vote

Update
Apparently it was me not understanding why the error 500 was happening.
I did not use the as prop in <Link> component.

What i should have done was:

<Link href="/[...slug]" as="/en/somepage">
  <a>En Somepage</a>
</Link>

And not:

<Link href="/en/somepage">
  <a>En Somepage</a>
</Link>

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by TommySorensen
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help
Labels
None yet
1 participant