How to set a url for the Solid router on backend (SSR) side?

How to set a url for the Solid router on backend (SSR) side?
5 Replies
Khyonn
Khyonn2y ago
What do you mean ? Do you want to redirect or you just want to define an API route ?
100kΩ 11kW Resistor
API route (probably?) I have to set route provided by http request to correctly render ssr
Khyonn
Khyonn2y ago
If you want to do some SSR, you should probably take a look at https://start.solidjs.com/
SolidStart Beta Docuentation
SolidStart Beta Documentation
Early release documentation and resources for SolidStart Beta
100kΩ 11kW Resistor
I have my own setup for Solid. I just don't know how to force a solid router to work without throwing an error After long testing sessions I figured out that ssr is practicaly unsupported on solid 😢
hannus
hannus12mo ago
I have tried to SSR for special URL but failed. In my experience, I can control the response according to the url by using Bun. However, it cannot works when the response that using renderToString function, but it works for the response which is string. I think renderToString has some issues that I have to deal with if I want to SSR in some conditions.
Want results from more Discord servers?
Add your server