diff --git a/packages/sveltekit/src/server/handle.ts b/packages/sveltekit/src/server/handle.ts index 8d5fe21de1c1..97f11d9a6d61 100644 --- a/packages/sveltekit/src/server/handle.ts +++ b/packages/sveltekit/src/server/handle.ts @@ -40,16 +40,25 @@ export type SentryHandleOptions = { * Controls if `sentryHandle` should inject a script tag into the page that enables instrumentation * of `fetch` calls in `load` functions. * + * You can safely set this to `false` if you're using `@sveltejs/kit` version 2.16.0 or newer. This + * is only needed for versions older than 2.16.0. + * * @default true */ injectFetchProxyScript?: boolean; /** - * If this option is set, the `sentryHandle` handler will add a nonce attribute to the script - * tag it injects into the page. This script is used to enable instrumentation of `fetch` calls - * in `load` functions. + * Warning: Setting this option is **strongly discouraged** and it will be removed in the next major version of the SDK. + * + * If you set this option, the passed nonce will be added to fetch proxy `