You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The inspector does not work when using a vite server running inside a docker container because the inspector attempts to open the editor within the context of the docker shell.
I've read that it's possible to configure command execution on the host from the container, but it seems cumbersome and potentially opens a major security vulnerability in the host machine.
Do you have any ideas about how this can be supported?
The text was updated successfully, but these errors were encountered:
I think this is a more general remote usage issue. When working remotely using SSH, the request to open in editor will arrive at the remote machine which would try to open the IDE on the remote machine not the local one. Same idea with Docker containers.
I have created a workaround by running a local server and modifying Overlay.vue component to forward requests to my local server. The local server then accepts the request and calls open-in-editor middleware (the one that this plugin uses internally).
It is definitely possible to implement remote support but I think it will require running a local server on the machine where you develop.
The local server is a simple Node.js server like this:
Then simply fork the Overlay.vue and edit the handleClick(e) { method and make the fetch call to your local server endpoint.
NOTE: Be aware that the file path needs to be the full absolute path for IDE and launch-in-editor to recognize it e.g./home/jimmy/nuxt/components/Hello.vue
The inspector does not work when using a vite server running inside a docker container because the inspector attempts to open the editor within the context of the docker shell.
I've read that it's possible to configure command execution on the host from the container, but it seems cumbersome and potentially opens a major security vulnerability in the host machine.
Do you have any ideas about how this can be supported?
The text was updated successfully, but these errors were encountered: