next.js - How to specify a port to run start slicemachine app on

Viewed 22

I am new to prismic, I just started learning about it last week and how to use it with Next.js projects. I decided to clone the Blog start project of prismic. So I found myself in a situation where I want to have 2 slice machines working simultaneously on different ports. Does someone know how to manually specify the port number on which the slice machine will run?

1 Answers

If you want to run it on port 5000 you run npm run slicemachine -- --port 5000

If you're using yarn run yarn run slicemachine --port 5000

Related