Skip to content

How to get typed getStaticProps with locale value ? #165

Answered by MoOx
MoOx asked this question in Q&A
Discussion options

You must be logged in to vote

One mistake: getStaticProps: GetStaticPaths when it should be getStaticProps: GetStaticProps.
Then like @amannn mentioned ({locale}: GetStaticPropsContext) to define arguments type.

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
2 replies
@MoOx
Comment options

@MoOx
Comment options

Comment options

You must be logged in to vote
0 replies
Answer selected by MoOx
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants