• Stars
    star
    103
  • Rank 333,046 (Top 7 %)
  • Language
    TypeScript
  • Created almost 5 years ago
  • Updated over 1 year ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Showcase NextJS rendering strategies and pros/cons

static-next

This project showcases the differences between the rendering strategies provided by Next.js.

The strategies involves data-fetching implementations in:

  • getInitialProps
  • getServerSideProps
  • getStaticProps
  • getStaticPaths
  • useEffect

Static-site-generation is achieved using getStaticProps and getStaticPaths. Vercel provides Deploy Hooks feature to allow a regeneration of the site upon calling the webhook. This can be done from within the demo itself.