Live Reloading for a Production Next.js app
First, we need a starter project. For that, clone this repository with:
git clone https://github.com/arunoda/nextjs-production-live-reload-demo.git cd nextjs-production-live-reload-demo
Then run this command:
yarn yarn build yarn start
Visit http://localhost:3005 to access this app.
Q: Usually, we use `yarn dev` or similar. What's the reason for using `yarn build` and `yarn start`?