Not falling back to SPA route if prerender enabled #563
Unanswered
dominiczy
asked this question in
Help & Questions
Replies: 2 comments 2 replies
-
Interesting use case. I think a catch-all route should do the trick. |
Beta Was this translation helpful? Give feedback.
2 replies
-
Easy way to reproduce the issue: add |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I want to enable SSR/SSG for some routes of my react app.
The SSR-enabled routes are working, but when I visit a non-SSR (eg. SPA-only) route, I get a 404, instead of it falling back to the client side react spa route.
In
vite dev
it works fine but when building and serving I get 404Any ideas?
Possibly related to this one #558 but no answers there so far..
Beta Was this translation helpful? Give feedback.
All reactions