How to change port on a vite-react-app?? #10834
Answered
by
patak-dev
prathmesh-ka-github
asked this question in
Q&A
-
I recently migrated from react to vite start and I cannot figure out how to change to port of the app when it is served locally. I know how to do it when we use react scripts but I dont know how to do it when we use vite. Can anyone help please? |
Beta Was this translation helpful? Give feedback.
Answered by
patak-dev
Nov 9, 2022
Replies: 2 comments 8 replies
-
You can use server.port in your config file, or pass |
Beta Was this translation helpful? Give feedback.
8 replies
Answer selected by
prathmesh-ka-github
-
by adding server port works for me
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
You can use server.port in your config file, or pass
--port {Number}
in the CLI