saeed Almulla
saeed Almulla

Reputation: 27

Does getStaticProps runs on the server?

I am trying to understand weather build time means when the page renders or when the app gets built into a vercel url

Upvotes: 1

Views: 104

Answers (1)

Danila
Danila

Reputation: 18506

getStaticProps runs at build time unless you are using revalidate flag for getStaticProps or fallback flag for getStaticPaths (in this cases the page will be generated on request).

Upvotes: 1

Related Questions