When we started to build @corbado/react we did not include server side rendering. Our react package can be used with NextJS but the experience is not great. We even experience this ourself (go to corbado.com and see how the components load).
In this ticket we want to list options how we can introduce support for @corbado/react.
Questions that should be addressed:
do we need to build a separate npm package?
what are the changes we need to make in the react, web-core and shared-ui packages?
how could a minimal solution look like that just makes sure that the initial screen of the component is server side rendered?
Why
When we started to build @corbado/react we did not include server side rendering. Our react package can be used with NextJS but the experience is not great. We even experience this ourself (go to corbado.com and see how the components load).
In this ticket we want to list options how we can introduce support for @corbado/react.
Questions that should be addressed:
Document all findings as part of this ticket.