Skip to content
This repository was archived by the owner on Apr 12, 2023. It is now read-only.

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

Notifications You must be signed in to change notification settings

sanity-io/sanity-nextjs-vercel-example

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

Code of conduct

Security policy

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •