This is a Sanity Studio project for the SANFORDEV blog built with Next.js 14 and deployed on Netlify.
Clone the repository:
git clone git@github.com:sanfordev/studio.git
cd studioFirst, set up your environment variables:
cp env-example.md .env.localThen install dependencies and run the development server:
npm install
npm run devOpen http://localhost:3333 to access the Sanity Studio.
NEXT_PUBLIC_SANITY_PROJECT_ID: Your Sanity project IDNEXT_PUBLIC_SANITY_DATASET: Your Sanity dataset (usually "production")NEXT_PUBLIC_SANITY_API_TOKEN: Public token for client-side queriesSANITY_STUDIO_API_TOKEN: Private token for Studio authentication
This project is configured for Netlify deployment. The netlify.toml file contains all necessary configuration.
To deploy:
- Connect your repository to Netlify
- Set up the required environment variables in Netlify's dashboard
- Deploy using the main branch
The studio will be available at: https://your-site.netlify.app/studio