Advanced
In reply to @nickcherry
Nick Cherry@nickcherry
2/21/2023

A CSR solution was simpler and I would argue potentially more performant, but we still needed to solve the OG problem. We considered outsourcing the server-side rendering to someone like prerender.io, but we didn't love the idea of relying on a third-party, particularly when our product reqs weren't that demanding.

In reply to @nickcherry
Nick Cherry@nickcherry
2/21/2023

Ultimately, we ended up implementing a simple Next server (opting for the framework just for convenience of having out-of-the-box support for JSX) to live in parallel with the web app, which is all just client-side rendering. We configure Cloudflare to look at the incoming user agent, and route to the appropriate site

In reply to @nickcherry
billzh.eth@billzh
2/21/2023

Great thread. Why do you think CSR is more performant in this use case?

In reply to @nickcherry
Stas@stas
2/21/2023

@nickcherry if it's still relevant, netlify comes with built-in prerendering https://docs.netlify.com/site-deploys/post-processing/prerendering/