CORS errors loading Genesys Messenger in Next.js SSR

Hey folks,

Trying to embed the Genesys Cloud Messenger widget in a Next.js app. It works fine on client-side routes, but on any SSR page I hit a CORS error when the widget tries to load from the Genesys domain. The browser blocks the request before it even hits our API.

Is there a specific way to handle this with the React SDK, or do I need to move the initialization to a useEffect hook that only runs on the client? Feels like a hydration mismatch waiting to happen.