Repository navigation
|
I can't find how to get a public server sandbox URL. In my case, I want to pass it to a webpack-dev-server for the proper work of WebSocket(Live reload). Currently, I use For example, Gitpod has a CLI API for such things |
Answered by
lbogdan
Oct 2, 2020
Replies: 1 comment 4 replies
|
Hey @maksimr , You can get the sandbox URL from the environment variable Also, with |
4 replies
Answer selected by
maksimr
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hey @maksimr ,
You can get the sandbox URL from the environment variable
SANDBOX_URL, you can see an example of that here: https://codesandbox.io/s/hardcore-goodall-l0gge?file=/src/index.js .Also, with
webpack-dev-serveryou can just setdevServer.disableHostCheck: trueand not worry about the URL at all.