(Port-)forwarding/Page preview #7822
Replies: 3 comments 2 replies
-
@janus-reith please see: theia/packages/core/src/browser/external-uri-service.ts Lines 25 to 33 in 96e3c72 |
Beta Was this translation helpful? Give feedback.
-
Unfortunately, it works for everything besides the mini-browser, we have an issue for it: #6562 For the mini-browser maybe @kittaakos can give a hint how forwarding of localhost can be implemented |
Beta Was this translation helpful? Give feedback.
-
Thanks @akosyakov @kittaakos for the details! I will need to dive further into this, as currently I'm struggling to understand it properly: If the mini-browser, which I assumme is the kind of preview browser I was looking for, currently does not work with url mapping, then where does that url mapper actually come into play? Or, is there some other pewview browser besides that mini-browser? |
Beta Was this translation helpful? Give feedback.
-
Many of my projects involve multiple services sitting on multiple ports.
For example, I have a frontend on port 4000, an api on port 3000, and some oauth flow using port 5000.
How could I forward these in the browser using theia? Preferrably I would not want to use some separate ssh forwarding that has to run on my local machine.
But at the same time, I would want my scripts and dom being executed and evaluated locally in the browser, so I could inspect things properly.
Another consideration would be, that things like the oauth flow should be functional, so I assume some kind of rewrite for localhost requests would need to happen.
I'm currently using VS Code with Remote SSH plugin and some ssh LocalForwards set up for several servers each containing separate projects, and I'm trying to find ways to replace this setup.
Any idea how this could work out?
Thanks!
Beta Was this translation helpful? Give feedback.
All reactions