Quick Notes - NextJs Specify A Port Number For Development


Use these notes to specify a port number to a NextJs project:

  1. Open package.json
  2. Change start to: "start" : "next start -p 8080",
  3. Use command: npm run start or yarn start
  4. Done

You can also use it on dev