expose
expose copied to clipboard
[Bug]: Vite path doesn't revert properly after ending share
System architecture
Mac, Apple Silicon
PHP Version
PHP 8.4.4
Bug description
Basically, while sharing a site that's running vite (e.g. pnpm run dev) and you end the share, the vite client path doesn't revert to the original path, breaking vite entirely for that site until you restart vite. I'm using herd share but I think this would happen with expose share as well.
Steps to reproduce
- Run
pnpm run devor similar to start Vite server. (vite url at this point ishttps://sitename.test:5173/@vite/client - Run
herd shareorexpose share(vite url gets changed tohttps://expose-url.expose-domain.com/@vite/client) - End share via
CTRL-C(vite url gets changed to/@vite/clientwhich is incorrect and does not work) - Vite is now broken.
Relevant log output
N/A