Skip to content

stefandjikic/next-cms-blog

Repository files navigation

Build a Blog with Next.js 14 and Sanity CMS - Repository from my YouTube tutorial

Video

Technologies used

Getting Started

First, add your Sanity project ID and dataset name to the .env.local file:

NEXT_PUBLIC_SANITY_PROJECT_ID=your_project_id
NEXT_PUBLIC_SANITY_DATASET=your_dataset_name

If you want to have comments system, you need to add your Sanity API token to the .env.local file:

NEXT_PUBLIC_SANITY_TOKEN=your_api_token

Then, install the dependencies:

npm install
# or
yarn install
# or
pnpm install
# or
bun install

Run the development server:

npm run dev
# or
yarn dev
# or
pnpm dev
# or
bun dev

Open http://localhost:3000 with your browser to see the result. Open http://localhost:3000/studio for sanity studio.

Deploy on Vercel

The easiest way to deploy your Next.js app is to use the Vercel Platform from the creators of Next.js.

About

Blog with Tags system - Next 14 and Sanity CMS

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages