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? |
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? |
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 |
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.jsportandpublicPath<code-server-root>/absproxy/3454e.g.http://localhost:8080/absproxy/3454Read more about
publicPathin the Vue.js docsVideo
Screen.Recording.2021-08-06.at.10.43.25.AM.mov