The server is configured with a public base URL of /vite-dev/ - did you mean to visit.... #344
-
Hi, I have set up a new Rails 7 app using Vite. At first, it worked great, both on local dev and on Heroku, but now I'm blocked on a problem I can't figure out. On on intermittant basis, I am getting this error when I load a page:
So, for some reason, rails wants to redirect to It seems lots of other people have similar problems with VITE: https://www.google.com/search?q=The+server+is+configured+with+a+public+base+URL+of+%2Fvite-dev I am using Docker, so I have followed this example as closely as I can: https://github.com/ElMassimo/vite_rails_docker_example When I look in the logs, sure enough, I see...
So yes, my base is configured to Here is my
I tried adding Here is my
I see that the next, here is my docker compose file:
Here is my GEMFILE
|
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
@kingpalethe is it happening in both env |
Beta Was this translation helpful? Give feedback.
-
Ran into the same problem and changing my base to |
Beta Was this translation helpful? Give feedback.
@kingpalethe is it happening in both env