How To Simply Set Port In Next.js
How to Simply Set Port In Next.js to a port aside from :3000
This is how to set port in a next.js app so if we want to run another application on a different port. By default the port is 3000. We update the "package.json" file and utilize the "-p" flag. The following will update to a port of :8080
1"scripts": {
2 "dev": "next dev -p 8080"