Closed bielcapanema closed 4 years ago
Hi @ryanmargheriti
This issue was closed primarily because it and https://github.com/Appboy/appboy-web-sdk/issues/80 were duplicates. We do not publish an unminified Braze Web SDK at this time however.
In terms of the point you raise, you are correct that the Braze Web SDK assumes a browser/client-side environment. Depending on your web framework it may be possible for you to import the Web SDK in the browser (e.g. see https://github.com/Appboy/appboy-web-sdk/issues/103 for how to do this with Next.js) or else if you are fully locked into SSR for the entire application I'd recommend using our REST API
@froodian
Any reason this was closed? I can see that the minified version is available on the CDN, but the non minified is not. Likewise with the NPM package.
https://js.appboycdn.com/web-sdk/3.3/appboy.min.js https://js.appboycdn.com/web-sdk/3.3/appboy.js
The SDK seems to have a flaw of relying on window, even when not initialised, which makes it unusable on SSR applications.