Static server-side regeneration #14236
-
I noticed that static generation creates every single page as html every time you build your project. |
Beta Was this translation helpful? Give feedback.
Answered by
rafaelalmeidatk
Jun 16, 2020
Replies: 1 comment 4 replies
-
You can use the experimental export async function getStaticProps(context) {
return {
props: { ... },
unstable_revalidate: 10, // if someone hits the page 10 seconds after the last build, the page will be regenerated
}
} |
Beta Was this translation helpful? Give feedback.
4 replies
Answer selected by
Timer
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
You can use the experimental
unstable_revalidate
variable: