Skip to content

robotostudio/sanity-nextjs-vercel-yarn-example

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Sanity + Next.js + Vercel example

A bare bones example of a Vercel-deployable project with a Next.js frontend and a Sanity Studio on /studio

Getting started

  1. Clone repo
    git clone https://github.com/sanity-io/sanity-nextjs-examle
    
  2. Install dependencies
    npm install
    
  3. Setup Sanity
    cd studio && sanity init
    
    This will prompt you if you want to reconfigure the project. Answer yes and follow instructions to create a new project.
  4. Setup Vercel deployment
    vercel
    
    When asked about build settings, make sure to use npm run dev as the development command

Notes

In development (using npm run dev)

In production (using vercel)

  • The Next.js application will be available on https://<your-domain>
  • The Sanity Studio will be accessible on https://<your-domain>/studio

About

A bare bones example of a Vercel-deployable project with a Next.js frontend and a Sanity Studio on /studio

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 100.0%