Skip to content

Code-Server and Live Preview #4963

Answered by code-asher
DyloFi asked this question in Q&A
Mar 9, 2022 · 4 comments · 4 replies
Discussion options

You must be logged in to vote

Yeah it does not look like the live preview extension has support for remote servers. Many of these extensions still assume they are running in local VS Code so they try to connect to localhost.

Ideally the extension would have an option where you could set the URL so you can open it through code-server's proxy (I checked but did not see one) or it could detect it automatically from the VSCODE_PROXY_URI environment variable.

One workaround is to manually use the proxy by going to https://domain.tld/proxy/3000/ (this is a path-rewriting proxy and assumes your preview server is running on 3000) or https://domain.tld/absproxy/3000/ (same deal except not a path-rewriting proxy).

The next best…

Replies: 4 comments 4 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@code-asher
Comment options

Answer selected by DyloFi
Comment options

You must be logged in to vote
3 replies
@bchewy
Comment options

@DyloFi
Comment options

@slungs
Comment options

Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
6 participants