Skip to content

bgoonz/blog-w-comments

Repository files navigation

Next.js blog with comment section

Your site https://blog-w-comments.vercel.app Sanity Studio https://blog-w-comments.vercel.app/studio Vercel project https://vercel.com/bgoonz/blog-w-comments Vercel deployment https://vercel.com/bgoonz/blog-w-comments/8xgNHDeMzzSZG7vf5raE6sRRdMdg

Running the front-end

Rename the .env.test file to .env and store the environment variables that Next and Sanity will use to pull data from the Sanity API. You can get or create the tokens, ids, and secrets from manage.sanity.io.

Once those env variables are ready, you can run the following commands to get Next's development server up and running:

npm install

# Run the frontend
npm run dev

# Run the Studio
npm run start:sanity

The blog will be running at http:https://localhost:3000, the Studio will run at http:https://localhost:3333.