Skip to content

Vite Subdomain proxy with HMR #4541

Answered by andycarlberg
andycarlberg asked this question in Q&A
Discussion options

You must be logged in to vote

In case anyone comes across this later trying to solve the same issue, here's what I know:

1. Subdomain proxy
Subdomain proxy will not work with the Cloudflare free tier on it's own (for my setup) - the SSL certificate provided by Cloudflare only covers subdomains, not sub-subdomains (e.g. 3000.codeserver..)

2. Base path
This is actually an issue with SvelteKit specifically. The base path doesn't apply to the dev server files correctly. I've opened an issue in that repo to address it:
sveltejs/kit#2958

Specifically addressing the trailing slash I mentioned here, this is also a bug in SvelteKit and is listed in their issue queue.

In short, neither of these things are issues with code-server.

Replies: 5 comments 11 replies

Comment options

You must be logged in to vote
5 replies
@andycarlberg
Comment options

@jsjoeio
Comment options

@im-coder-lg
Comment options

@andycarlberg
Comment options

@jsjoeio
Comment options

Comment options

You must be logged in to vote
1 reply
@jsjoeio
Comment options

Comment options

You must be logged in to vote
1 reply
@jsjoeio
Comment options

Answer selected by andycarlberg
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
4 replies
@jsjoeio
Comment options

@dubreuil534
Comment options

@jsjoeio
Comment options

@code-asher
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
5 participants