Skip to content
Discussion options

You must be logged in to vote

getStaticProps and getStaticPaths only run in build time to get statically rendered page. In dev mode, it keep rendering new static page to reflect the change in source code. In prod, it will never run as it already has static page to read from.

Replies: 1 comment 4 replies

Comment options

You must be logged in to vote
4 replies
@christiankozalla
Comment options

@illuminist
Comment options

@illuminist
Comment options

@christiankozalla
Comment options

Answer selected by christiankozalla
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