set up sanity in next13 >

create next app -npx create-next-app@latest
navigate project folder

  • add install npm install next-sanity @sanity/client @portabletext/react @sanity/image-url -run npx sanity init configure it

  • it creates -a studio page -entry to the embedded studio
    -.env file
    - sanity folder with client and schema

0
Subscribe to my newsletter

Read articles from Benson Kamau (Mungaben) directly inside your inbox. Subscribe to the newsletter, and don't miss out.

Written by

Benson Kamau (Mungaben)
Benson Kamau (Mungaben)