client-side rendered solid-start, router and vercel

I am trying to deploy a CSR solid-start project to vercel. When I enter the route from the root and then navigate to a sub-route, I get properly routed, but if i directly go to a route I get a 404. Locally it works as expected. Is there something I need to add to my config for this to work?
1 Reply
bigmistqke
bigmistqkeOP3y ago
I should have googled a bit more.
{
"rewrites": [
{"source": "/(.*)", "destination": "/"}
]
}
{
"rewrites": [
{"source": "/(.*)", "destination": "/"}
]
}
in vercel.json will do the trick.
Want results from more Discord servers?
Add your server