Problems with Reloading on Vercel #2629
-
I deployed my leptos webpage (csr) to vercel but I get a weird error. When I navigate to a different route, like https://sam-mun.vercel.app/projects then reload, I get a 404 error. I tried playing with Here is my webpage, https://sam-mun.vercel.app/ |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Generally speaking, if you are deploying any single-page app with client-side routing to any static server, you need to set up some way to rewrite any non-API requests to |
Beta Was this translation helpful? Give feedback.
Generally speaking, if you are deploying any single-page app with client-side routing to any static server, you need to set up some way to rewrite any non-API requests to
index.html
so that they serve the HTML page that will load your client-side app. Glancing at Vercel docs it looks likerewrites
are the way to do this. (Here is a longer article)