install now:

npm i -g now

start a dev server that mimics now deployment:

now dev