Replies: 1 comment 2 replies
-
I did a bunch of digging, and I think I got this working, at least somewhat. The necessary changes were actually pretty minimal, though I'm not sure if I'm missing some functionality that the The primary changes to get it working were:
I'm going to continue to do some more development with this setup and see how things work out. I'm not sure if this is a use-case that this gem wants to support, but I thought I'd share my findings either way. |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello, and thanks for all the great contributions to the vite-ruby ecosystem. I realize this is a little more obscure, but I've been hacking around using a small node/express sidecar server next to my Rails app (using vite-rails) to SSR frontend components with vite. I used the vite guides to set this up. This mostly works, though I'm trying to figure out if I need to run both the normal
./vite dev
fromvite-rails
in addition to my node/express server. My understanding is that using vite in middleware mode with node/express is potentially the same as runningvite dev
, so it may be redundant to be running two vite development servers.So I guess my discussion topic is if it would be possible to plug the node/express vite dev server running in middleware mode into the way
vite-rails
is configured so that I don't have to run two servers. I've spent a little time trying to figure this out but could use some tips or insight. This would allow you to run a single dev server that would handle frontend bundling/HMR and also SSR.Thank you!
Beta Was this translation helpful? Give feedback.
All reactions