Home App Docs Blog Github

Support for getStaticProps in Next.js

Hi team!

Hope you are well!
According to the Next.js documentation, from Next 9.3 it is recommended to use getStaticProps
and from 9.5 there is support for Incremental static regeneration.

Does builder.io also support using getStaticProps, or is it only getInitialProps?

Many thanks,
Vincent

Hi @vperrin! Right now I can’t think of a reason why getStaticProps couldn’t be supported, I expect it to work just fine. If you try it out and it does not work as expected, let us know and we can take a look.

Cheers!

Thanks @armando, will give it a try!

Vincent