You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
My ruby on rails with vite application, has GUI that can be launched from root URL or from within a reverse-proxy app under a relative URL.
In vite.config.ts, after setting configuration base: './', rebuilding vite and assets and restarting GUI service, assets URLs are still absolute, like vite_javascript_tag produces URLs starting with forward slash "/vite/assets/application.xxxx.js" and "/vite/assets/application.xxxx.css", and css url() files are absolute as well.
We cannot upgrade vite to version 5, because it requires nodejs 18, which requires glibc 2.28, which requires us to upgrade from ubuntu 18.04 to 20.
bundle update vite_ruby
.Description 📖
My ruby on rails with vite application, has GUI that can be launched from root URL or from within a reverse-proxy app under a relative URL.
In vite.config.ts, after setting configuration base: './', rebuilding vite and assets and restarting GUI service, assets URLs are still absolute, like vite_javascript_tag produces URLs starting with forward slash "/vite/assets/application.xxxx.js" and "/vite/assets/application.xxxx.css", and css url() files are absolute as well.
We cannot upgrade vite to version 5, because it requires nodejs 18, which requires glibc 2.28, which requires us to upgrade from ubuntu 18.04 to 20.
Reproduction 🐞
Vite Ruby Info
Run
bin/rake vite:info
and provide the output:@ElMassimo
GitHub source code shows the prefix_vite_asset function always precedes assets path with forward slash in development:
vite_ruby/vite_ruby/lib/vite_ruby/manifest.rb
Line 137 in c726a16
Also here:
vite_ruby/vite-plugin-ruby/src/config.ts
Line 104 in 981d69d
The text was updated successfully, but these errors were encountered: