not able to update the port
akshay27395 opened this issue · comments
There is no way in Next.js to set a port via an environment variable or some configuration option.
But you can change the package.json file, like this:
"scripts": {
"dev": "next dev -p 3000",
"build": "next build",
"start": "next start -p 80"
}
There is no way in Next.js to set a port via an environment variable or some configuration option.
But you can change the package.json file, like this:
"scripts": { "dev": "next dev -p 3000", "build": "next build", "start": "next start -p 80" }
It works!!! Thank you so much.