Next 12
↔ verion 12 of Next.js, deprecated as of October 25th, 2022
aka Next-12
/pages
( Next 12 ) dir to export default Page
/public
( Next 12 ) dir to serve Static Content
/(dir)
( Next 12 ) to excl dir from CSR
_app.tsx
( Next 12 ) to share global CSS stylesheet, layout or config
getStaticPaths()
export
async function to
Source: nextjs.org/docs/basic
getStaticProps()
Source: nextjs.org/docs/basic
getServerSideProps()
async fn to run on Backend to pre-render on each request, to fetch async external data
Source: nextjs.org/docs/basic