SSR for certain route, CSR for the rest
Is it possible to render a certain route using SSR method, and the rest of the routes on the client?
Currently all routes are rendered on the client side. I'm trying to figure out how to have route
/example
render on the server, since the content from /example
need to be displayed in google results.
1 Reply
This has been discussed this week
1. you can in switch modes in server entry from stream/async (SSR) to sync (CSR)
2. you can create a layout which only renders on client by
2.1 add a Show component which you trigger to true in onMount
Or use clientOnly
https://discord.com/channels/722131463138705510/910635844119982080/1418142939321864223