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.
"@solidjs/router": "^0.15.0"
"@solidjs/start": "^1.1.0"
"solid-js": "^1.9.5"
"@solidjs/router": "^0.15.0"
"@solidjs/start": "^1.1.0"
"solid-js": "^1.9.5"
1 Reply
Madaxen86
Madaxen867d ago
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

Did you find this page helpful?