This was happening because you need to force ssr build
The Fix 🔨
By changing
ViteRuby.commands.build_from_task('--ssr') if ViteRuby.config.ssr_build_enabled
to
ViteRuby.commands.build_from_task('--ssr', '--force') if ViteRuby.config.ssr_build_enabled
Description 📖
This pull request fixes #483
Background 📜
This was happening because you need to force ssr build
The Fix 🔨
By changing
ViteRuby.commands.build_from_task('--ssr') if ViteRuby.config.ssr_build_enabled
toViteRuby.commands.build_from_task('--ssr', '--force') if ViteRuby.config.ssr_build_enabled