So, I added that part in the server code for your proxy application below: retrieve the uiPort (as you already did) But still append the /containerId_3000 portion to the target URL, since now your vite app running on port 3000 expected all requests to have a base path /containerId_...