SolidJSS
SolidJSโ€ข2y agoโ€ข
5 replies
average tea enjoyer

solid-router without SSR and without having to redirect

I just found out that when i build my app with solid-router its only possible to visit the index page on first page load. I saw the section in the readme.

When deploying applications that use a client side router that does not rely on Server Side Rendering you need to handle redirects to your index page so that loading from other URLs does not cause your CDN or Hosting to return not found for pages that aren't actually there.

I havent anticipated that and i need the users to visit a specific route of my app (as it is possible in vite dev mode) .
Do i need do use server rendering and solidstart for this to be possible? Is it possible to prebuild the routes for deployment?
Was this page helpful?