Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

As another user mentioned, Next.js has a 'next build' command that creates a HTML build at build time. But it also provides server-side rendering by default.

Next.js also provides a very useful function: getStaticProps. This function will be called at build time - and will provide your (now static) build with dynamic data! It's pretty cool.



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: