Is your feature request related to a problem? Please describe.
I happen to be implementing this at a specific URL that has a custom prefix. when loaded in a browser, the path is reverted to /
, which results in files not loading because it thinks that things should be being served via /
, rather than this custom prefix.
Describe the solution you'd like
Environment variable to inform the UI (I suppose this is called the debugger) of its new root. I can't think of a reason why the router itself would need to know about this new root, since everything can communicate via localhost, if there is any internal HTTP at all (why would there be?)
Describe alternatives you've considered
I've tried a number of things, can't seem to get it to work as I expect, and have scrubbed through the code to see if such an env var exists, but it doesn't seem like one is being used.
There isn't a workaround for this, because the deployment method adds highly valued features, but requires a URL prefix, because more than one service is exposed through a root endpoint.
Additional context
Let me see if I understand -- are you running the container behind a reverse proxy/load-balancer that has a specific path? Have you seen/tried https://www.browserless.io/docs/docker#using-a-proxy?
I think the issue is akin to that, but imagine if the proxy had a URL prefix.
devtoolsFrontendUrl
would need to be able to have a prefix inserted, such as <prefix>/devtools
.
As far as I'm aware, this only need be provided to the UI; the UI has paths for resources that are based on a relative URL, whereas this prefix would then need to either adjust the relation, or switch to absolute.
Owner Name | browserless |
Repo Name | chrome |
Full Name | browserless/chrome |
Language | TypeScript |
Created Date | 2017-11-17 |
Updated Date | 2023-03-22 |
Star Count | 5309 |
Watcher Count | 47 |
Fork Count | 516 |
Issue Count | 29 |
Issue Title | Created Date | Updated Date |
---|