Open
Description
Describe the bug
For a localhost
port, Daytona serves a 502 Bad Gateway
error indefinitely while polling. Can confirm that the port is up and running (via netstat
or ss -lt
).

This continues indefinitely until the server is exposed to the network (eg 0.0.0.0
). When this happens, I now get a vite
error saying that the incoming *.daytona.work
domain isnt allowed to access the dev server.
Blocked request. This host ("[id].[hash].daytona.work") is not allowed.
To allow this host, add "[id].[hash].daytona.work" to `server.allowedHosts` in vite.config.js.
To Reproduce
Steps to reproduce the behavior:
- Create a workspace with any vite starter app
yarn dev
inside workspace- Get preview link for
5173
-> 502 error - run
yarn dev --host
to expose over network - Get preview link for
5173
-> 403 error
Expected behavior
Preview link(s) for a target port should be working regardless of interface.