Skip to content

hussamkhatib/The-Juicy-bits

Repository files navigation

The Juicy bits.

products-page

This is an e-commerce application that features a studio with Next.js frontend.

It uses the Next.js toolkit for Sanity.io.

Running Locally

To run locally,add your project ID to .env from manage.sanity.io.

If you have already set up deployments on Vercel, you can also do vercel env pull to copy environment variables to your development environment.

NOTE: If your Vercel project is set up to use the Next.js framework preset, you'll have to go to the project settings under https://vercel.com and under Build & Develpment change the development command to: npm run dev

To start the development server:

yarn dev

This will run the frontend at http://localhost:3000

yarn studio

This will run Sanity Studio at http://localhost:3000/studio

Tech stack