#Working with `getStaticProps` during development.

2 messages · Page 1 of 1 (latest)

viral spruce
#

What's the best way to work with getStaticProps during development? Because these props will only be generated on build time..

Do I need to write getServerSideProps functions instead, and change all of them to getStaticProps before running next build?

Because it doesn't allow me to have both getStaticProps and getServerSideProps in a single page file.

primal apex
#

getStaticProps runs on every request in development. Not really sure if that answers your question. Might be helpful to explain what you are trying to do.