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
What do you mean ? Do you want to redirect or you just want to define an API route ?
API route (probably?)
I have to set route provided by http request to correctly render ssr
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
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
😢
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.