Closed guillaumebriday closed 3 months ago
Ok I found the problem. It's not related to Vite_ruby directly.
It was because I use thewebmock
gem that override the StubSocket https://github.com/bblimke/webmock/blob/master/lib/webmock/http_lib_adapters/net_http.rb#L210 and it's not compatible with Vite ruby
bundle update vite_ruby
.Description 📖
I tried many different configuration (like
"host": "0.0.0.0"
), but HMR still does not work for me with subdomains. I tried to configure the host: https://vite-ruby.netlify.app/config/#host but it does not work.I use multiple tenant based on subdomain like so: http://client-a.concilia.localhost:3000, http://client-b.concilia.localhost:3000, etc
I would like HMR to work for any subdomain, is it possible?
I have these errors in the console once I run![Screenshot 2024-05-15 at 17 12 09](https://github.com/ElMassimo/vite_ruby/assets/8252238/96e7be1b-307e-49e0-a2e6-21baecdc672f)
VITE_RUBY_HOST=0.0.0.0 yarn vite
and reload the pageI also found this issue https://github.com/ElMassimo/vite_ruby/issues/179 but it does not fix my problem
Any idea how to fix that?
Thank you in advance!