Running Vue on Code-Server #3912
Answered
by
jsjoeio
abhinav1912
asked this question in
Q&A
-
I've gone through the documentation, but can't wrap my head around this. On starting a Vue server, it uses port 8080. How do I access it? |
Beta Was this translation helpful? Give feedback.
Answered by
jsjoeio
Aug 6, 2021
Replies: 2 comments 12 replies
-
Hmm I haven't worked with Vue in a long time, but code-server also uses the 8080 port. You should be able to change the port on Vue's side. Have you tried this? |
Beta Was this translation helpful? Give feedback.
2 replies
-
I figured it out. It's similar to how we tell folks to proxy Create React App
module.exports = {
devServer: {
port: 3454,
},
publicPath: "/absproxy/3454",
}
Read more about VideoScreen.Recording.2021-08-06.at.10.43.25.AM.mov |
Beta Was this translation helpful? Give feedback.
10 replies
Answer selected by
abhinav1912
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I figured it out. It's similar to how we tell folks to proxy Create React App
vue.config.js
port
andpublicPath
<code-server-root>/absproxy/3454
e.g.http://localhost:8080/absproxy/3454
Read more about
publicPath
in the Vue.js docsVideo
Screen.Recording.2021-08-06.at.10.43.25.AM.mov