When using --use-localhost the app loads (app is embedded using react + vite) and I can see the app frontend.
But I noticed that vite gives this websocket error,
After this, if I make any changes to the code, HMR is broken. Vite tries to update, but I do not see those changes in the app, it continues to show the initial load.
This is almost same vite configuration and most of the code is similar to this codebase,
OS: MacOS
shopify.web.toml is
roles = ["frontend"]
[commands]
dev = "npm run dev"
build = "npm run build"