Skip to content
Discussion options

You must be logged in to vote

tl;dr getStaticPaths is never re-ran at runtime, including while in preview mode (so it cannot be aware).

By design, getStaticProps is meant to handle inputs not returned by getStaticPaths (this is one of the reasons getStaticPaths cannot pass data to getStaticProps).

As there's no fallback behavior in preview mode, running getStaticPaths is unnecessary (preview mode treats every path req as-if it were returned from getStaticPaths).

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
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
2 participants