Skip to content

willemliu/static-next

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ec14165 · Nov 1, 2022
Nov 1, 2022
Nov 1, 2022
Mar 6, 2020
Nov 1, 2022
Jan 6, 2022
Oct 31, 2022
Jan 6, 2022
Oct 31, 2022
Jan 6, 2022
Oct 31, 2022
Oct 31, 2022
Oct 31, 2022
Oct 31, 2022
Jan 6, 2022

Repository files navigation

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.