Self-hosted Sentry does not ship the lazy-loadable JS SDK bundles by default; the loader renders a noop stub unless configured. Two options, both confirmed in the thread. First, self-host the assets: set SETUPJSSDKASSETS=1 in your .env (available since self-hosted 24.10.0), then set JSSDKLOADERDEFAULTSDKURL in sentry.conf.py to your instance's /js-sdk path, e.g. JSSDKLOADERDEFAULTSDKURL = "https://sentry.example.com/js-sdk/%s/bundle%s.min.js". This was confirmed working by a reporter on a Kubernetes-based setup. Second, accept the Sentry CDN and point the loader at it: JSSDKLOADERDEFAULTSDKURL = "https://browser.sentry-cdn.com/%s/bundle.min.js" (match the SDK major version to your Sentry install).
Source: https://github.com/getsentry/sentry/issues/22715
Source: https://github.com/getsentry/sentry/issues/22715