Skip to content

levymateus/sanity-nextjs-blog

Repository files navigation

Sanity Nextjs Blog

This project is an quick start project, or a template project by the way. Follow the steps above to configure your project.

  1. Create an account in firebase. Then create a project and follow the instructions.
  2. Create an account in sanity.io. Then create a new project. I'd suggest to create 2 datasets: 1 for development and 1 for production.
  3. Edit the .env.example file with the right values .

Scripts

Basic configured scripts to develop and deploy.

Frontend scripts

To start frontend in dev mode

yarn dev

To build frontend

yarn build

To start frontend in preview mode:

yarn start

Backend scripts

To start backend in dev mode:

yarn sanity dev

To build backend

yarn sanity build

To start backend in preview mode

yarn sanity start

To deploy sanity

yarn sanity deploy

You can view the project design in figma.