Skip to content

Files

Latest commit

 

History

History

with-next

Example: Next.js

Try it live at Stackblitz or Codesandbox.

This example is using next@12 and react@17 because next@13 is not working in Stackblitz or Codesandbox. You can upgrade this example to next@13 and react@18 when you are using it locally.

How does this work?

  1. a custom pages/_app 1
  2. a custom pages/_document 2 to enable server-side rendering (SSR) of styles
  3. (optional) a dedicated twind.config

What is included?

Footnotes

  1. Next.js › Custom App

  2. Next.js › Custom Document