llamaculture
Explore posts from servers404 on deployed Vite + SolidJs app
Hi I've been trying to debug this issue for a week with no luck.
Context:
I've got a Solid Js app built by Vite all deployed to my Railway account.
Problem:
When I try to route to any route that isn't the root
"/"
, I get a 404 in the deployed version of the app. However when I try to use the same route locally I don't get the error and the content is displayed correctly.
Can anyone help me out with this?
What I've done to try to resolve:
- Added a _redirects
file to the root of my repository
- Added a base
tag to my index.html head
with an href pointing to the root route "/"
- Confirmed that I have the correct solid plugin in my vite config json file31 replies