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