Cloudflare Fonts vs. Server Side Rendering (SSR)

What is the name of the domain?

What is the issue you’re encountering

Is it possible to work with Cloudflare Fonts when using SSR?

What are the steps to reproduce the issue?

Per Cloudflare Fonts documentation, it alters the response to serve Google Fonts from within Cloudflare itself, so it does not have to go all the way to Google, making it a shorter path. While this is great, it comes with a limitation that is when you are using Server Side Rendering (SSR), with Next or Remix, for example. An error Minified React error #418 – React will be thrown, which is expected, since whatever was provided by the server got modified on its way to the client, causing React to fallback to client-side rendering.

Is there any workaround so that we modify this content from within the server directly, say, by using a different URL as opposed to Google, so that the content the server provides is the same as the client receives?

1 Like

This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.