Next.js - Is there a Command to start only the Frontend at Localhost:3000 without opening the Studio?

6 replies
Last updated: Mar 25, 2021
Is there a command to start frontend only at localhost3000 without opening the studio. I usually run npm start to run both studio and frontend , which i think is the reason why my computer is slowing down in performance.
Mar 24, 2021, 8:25 AM
Are you referring to the starter? If so, you can start the frontend only by going into
/web
and run
npm start
there instead
Mar 24, 2021, 8:58 AM
Yes the e-commerce starter ,sorry should have mentioned that.Thanks
🙌
Mar 24, 2021, 9:08 AM
well just found out there is no web folder in next js starters
Mar 24, 2021, 9:35 AM
ah I see, the e-commerce starter is different to the older starters
Mar 24, 2021, 9:36 AM
I haven’t looked into the e-commerce starter at all, but it doesn’t look like
npm start
runs the studio as well.
npm run dev
does. You could just run
next dev
instead of
npm run dev
Mar 24, 2021, 9:42 AM
thanks
next dev
works!
Mar 25, 2021, 5:59 AM

Sanity.io – build remarkable experiences at scale

Sanity is a customizable solution that treats content as data to power your digital business. Free to get started, and pay-as-you-go on all plans.

Categorized in