getsentry / sentry-docs

Sentry's documentation (and tools to build it)
https://docs.sentry.io
Other
332 stars 1.46k forks source link

Make it more clear that browser SDKs should only be run in the browser #11705

Open AbhiPrasad opened 2 weeks ago

AbhiPrasad commented 2 weeks ago

SDK

JavaScript SDK

Description

ref https://github.com/getsentry/sentry-javascript/issues/9982#issuecomment-2450151656

Users occasionally hit issues in SSR apps when trying to run the browser SDK because they run it in a node environment, which the SDK is not designed to do. We should make it extremely clear in the docs that browser SDKs (and browser frameworks like react, vue, ember) are meant to only run in the browser and that they should look toward using our framework sdks like nextjs, remix, nuxt or our node sdk to get server-side instrumentation.

Suggested Solution

No response

ulfgebhardt commented 1 week ago

Example Memory Leak fix in vike, vue, vite SSR environment: https://github.com/dreammall-earth/dreammall.earth/pull/3005