-p {PORT}で変更する。
-p {PORT}
package.json"scripts": { "dev": "next dev -p 4000" }
"scripts": { "dev": "next dev -p 4000" }
yarn dev # or npm run dev