In this blog, we’ll show you how to run a NuxtJS Application on a port other than the default port number 3000.
If you like using `.env` (dotenv) file you can create a .env
file at the root of the project directory and specify the port number by specifying value to the PORT
variable.
Restarting the server now runs on a port specified in the .env
file.
Alternatively, you can run the app on a different port by specifying your desired port number to the npm run dev command.
npm run dev --port 4456
Be First to Comment