This PR adds a polyfill to reference the window object through in the browser-sdk. The polyfill will render a mock object if the browser-sdk happens to be rendered in a server environment.
The browser-sdk usually should not be rendered in a server environment, but there are apparently next.js flows that make this possible, so this enables those flows to function correctly.
This PR adds a polyfill to reference the window object through in the browser-sdk. The polyfill will render a mock object if the browser-sdk happens to be rendered in a server environment.
The browser-sdk usually should not be rendered in a server environment, but there are apparently next.js flows that make this possible, so this enables those flows to function correctly.