Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to change port number (Re: port 3000 is already in use) #16

Open
sanyaade-teachings opened this issue Oct 31, 2022 · 1 comment
Open

Comments

@sanyaade-teachings
Copy link

Hello Everybody,

I need to change the port number as port 3000 is in used on my server.
Please which file contains the port configuration.

Many thanks!

God blesses!!!

Regards

@vthommeret
Copy link
Owner

You can change the development port by editing by editing package.json like so:

diff --git a/package.json b/package.json
index ac80a99..b5ab206 100644
--- a/package.json
+++ b/package.json
@@ -3,7 +3,7 @@
   "version": "0.1.0",
   "private": true,
   "scripts": {
-    "dev": "next dev",
+    "dev": "next dev -p 3005",
     "build": "next build",
     "start": "next start"
   },

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants