Skip to content
Discussion options

You must be logged in to vote

getStaticProps and getStaticPaths get executed at build time so there is no way for Next to know about what user will be viewing the page. It worked locally because getStaticProps and getStaticPaths are called on every request during local dev.

Replies: 3 comments 2 replies

Comment options

You must be logged in to vote
1 reply
@laurendorman
Comment options

Comment options

You must be logged in to vote
1 reply
@laurendorman
Comment options

Answer selected by laurendorman
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help
Labels
None yet
4 participants