Conversation
…oute-base-url-path`
|
@aeschli - Wanted to understand if this is being worked on and if there is any target for this? Thanks for working on this. |
.yarn/install-state.gz
Outdated
There was a problem hiding this comment.
What is this file about, do we need this committed?
There was a problem hiding this comment.
good catch. Removed it
|
Thanks for this great feature. Is there a way to only set it as proxy path in a sense that additional resources get loaded with this prefix but the server answers to requests without this prefix? For example, I have a proxy which redirects "/a/b" to "code_servce_web_container:8080", so additional resources need to be loaded from "/a/b/path" while the code server should respond on "/path". Or even better: If one would use relative paths everywhere this would not be necessary. |
@mering Relative paths were actually possible in the original PR; but the biggest problem is that the resources aren't loaded and served relative to the page URL in the HTML. Embedding the resources and serving everything in a single HTML would sure eliminate the need for prefixes though. |
|
@oakaigh The proxy server does handle and strip the prefix and this is exactly the problem: Embedding would indeed solve the problem. I am looking for something like Coder's |
|
@oakaigh Can you explain why relative paths don't work? |
Apologize for the confusion. I stand corrected - actually the paths need to be passed to the server as is. So no, the paths cannot be stripped outside the code server - unless there's an option to enable the server to return HTMLs with stripped resource paths (so that it's informed of the stripped paths). I don't think this is currently implemented anywhere.
The problem is that the main page may not always be |



Adds a new server option
--server-base-paththat allows to configure the URL path under which the web server is started,