Description
I have spent my whole day wo research and find out how I can deploy a Cloud IDE instance for vue development environment. I found out that /absproxy
works very differently from /proxy
which the documentation didn't mentioned about a lot.
Another problem was the sockjs-node
, I have looked up these issues and prs to find out more clues:
- Add /absproxy to remove --proxy-path-passthrough #2674
- code-server's reverse proxy seems to always return index.html for all resources #2222
- pathProxy.ts: Implement --proxy-path-passthrough #2563
Infact, create-react-app
script did fixed the sockjs-node
's always pointing root /
issue, meanwhile, there's no any effective or useful way to make vue/cli3
''s sockjs-node
to work.
There is a example that worth vue developers to take a look:
In this example, the demo was shown as local development envirnment with no subdirectory, however, it was painful to setup a nginx/Apache reverse proxy server rewrite rule without reading the proxy code of code-server it self (which took the most of my time).
Will there be any documentation to summarize the way those proxy work, and maybe, support vue/sockjs-node proxy in HTTPS development envirnment (HTTPS development envirnment is very important in this age of time)?