## TL;DR

First, self-host the assets: set SETUP_JS_SDK_ASSETS=1 in your.env (available since self-hosted 24.10.0), then set JS_SDK_LOADER_DEFAULT_SDK_URL in sentry.conf.py to your instance's /js-sdk path, e.g.

## Steps

1. On self-hosted Sentry, the JavaScript loader shown in Client Keys (DSN) settings produces only this: `function _sentry_noopWarning() { console.warn("The Sentry loader you are trying to use isn't working anymore, check your configuration."); }`: a stub that logs a warning on every call instead of lazy-loadingading the SDK. Self-hosted, various versions up to 25.x.

2. 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 SETUP_JS_SDK_ASSETS=1 in your .env (available since self-hosted 24.10.0), then set JS_SDK_LOADER_DEFAULT_SDK_URL in sentry.conf.py to your instance's /js-sdk path, e.g. JS_SDK_LOADER_DEFAULT_SDK_URL = "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: JS_SDK_LOADER_DEFAULT_SDK_URL = "https://browser.sentry-cdn.com/%s/bundle.min.js" (match the SDK major version to your Sentry install).

## When to use

You are seeing this: Self-hosted, various versions up to 25.x. Use this skill when you run into "Self-hosted Sentry JS loader is a noop: The Sentry loader you are trying to use isn't working anymore".

## When not to use

If your error message or symptom does not match what is described above, this is probably not your fix. Search for your exact error text instead of forcing this one to fit.

## Versions

Versions mentioned in the source: self-hosted 24.10.0. If you are on something much newer or older, the details may have shifted.

## Why this happens

The original report does not dig into a root cause. It documents the symptom and the fix that resolved it.

## Sources

- https://sentry.example.com/js-sdk/%s/bundle%s.min.js"

- https://browser.sentry-cdn.com/%s/bundle.min.js"
