You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Other adapters may work but aren't currently supported. We're looking into extending first-class support to more adapters in the future.
28
-
29
-
Also, Sentry's SvelteKit SDK does not yet work with all non-node server runtimes, such as Vercel's edge runtime.
20
+
The SvelteKit Sentry SDK is designed to work out of the box with several SvelteKit adapters and their underlying server runtimes.
21
+
Here's an overview of the current support:
22
+
23
+
-**Fully supported Node.js runtimes**
24
+
-[Adapter-auto](https://kit.svelte.dev/docs/adapter-auto) for Vercel; other Node.js-based platforms might work, but we don't guarantee compatibility at this time
25
+
-[Adapter-vercel](https://kit.svelte.dev/docs/adapter-vercel) when used with Vercel's Node.js Lambda runtime
- Non-Node.js server runtimes, such as Vercel's edge runtime, are not yet supported.
31
+
-**Other adapters**
32
+
- Other SvelteKit adapters might work, but they're not currently officially supported. We're looking into extending first-class support to more adapters in the future.
30
33
31
34
</Expandable>
32
35
@@ -62,9 +65,9 @@ If you're updating your Sentry SDK to the latest version, check out our [migrati
62
65
63
66
You need to initialize and configure the Sentry SDK in three places: the client side, the server side, and your Vite config.
64
67
65
-
### Configure Client-side Sentry
68
+
### Configure Client-Side Sentry
66
69
67
-
Create a client hooks file `src/hooks.client.(js|ts)` if you don't have one already. In this file, import and initialize the Sentry SDK and add the `handleErrorWithSentry` function to the [`handleError` hook](https://svelte.dev/docs/kit/hooks#Shared-hooks-handleError).
70
+
Create a client hooks file `src/hooks.client.(js|ts)`in the `src` folder of your project if you don't have one already. In this file, import and initialize the Sentry SDK and add the `handleErrorWithSentry` function to the [`handleError` hook](https://svelte.dev/docs/kit/hooks#Shared-hooks-handleError).
Create a server hooks file `src/hooks.server.(js|ts)` if you don't have one already. In this file, import and initialize the Sentry SDK and add the `handleErrorWithSentry` function to the [`handleError` hook](https://svelte.dev/docs/kit/hooks#Shared-hooks-handleError) and the Sentry request handler to the [`handle` hook](https://kit.svelte.dev/docs/hooks#server-hooks-handle).
114
+
Create a server hooks file `src/hooks.server.(js|ts)`in the `src` folder of your project if you don't have one already. In this file, import and initialize the Sentry SDK and add the `handleErrorWithSentry` function to the [`handleError` hook](https://svelte.dev/docs/kit/hooks#Shared-hooks-handleError) and the Sentry request handler to the [`handle` hook](https://kit.svelte.dev/docs/hooks#server-hooks-handle).
Other adapters may work but aren't currently supported. We're looking into extending first-class support to more adapters in the future.
19
-
20
-
Also, Sentry's SvelteKit SDK does not yet work with all non-node server runtimes, such as Vercel's edge runtime.
14
+
-**Fully supported Node.js runtimes**
15
+
-[Adapter-auto](https://kit.svelte.dev/docs/adapter-auto) for Vercel; other Node.js-based platforms might work, but we don't guarantee compatibility at this time
16
+
-[Adapter-vercel](https://kit.svelte.dev/docs/adapter-vercel) when used with Vercel's Node.js Lambda runtime
- Non-Node.js server runtimes, such as Vercel's edge runtime, are not yet supported.
22
+
-**Other adapters**
23
+
- Other SvelteKit adapters might work, but they're not currently officially supported. We're looking into extending first-class support to more adapters in the future.
0 commit comments