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
- A Sentry [account](https://sentry.io/signup/) and [project](/product/projects/)
17
-
- Your application up and running
18
-
19
-
<Expandabletitle="Notes on SvelteKit adapter compatibility">
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.
For development, you can include your [Data Source
151
-
Name](/concepts/key-terms/dsn-explainer/) (DSN) directly in these files.
152
-
However, in production, we strongly recommend you use an environment variable
153
-
to avoid accidentally exposing your DSN in the codebase.
154
-
</Alert>
155
-
156
127
### Configure Vite
157
128
158
-
Add `sentrySvelteKit`to your plugins before `sveltekit` in your `vite.config.(js|ts)` file to automatically upload source maps to Sentry and instrument `load` functions for tracing if it's configured.
129
+
Add the `sentrySvelteKit`plugin **before**`sveltekit` in your `vite.config.(js|ts)` file to automatically upload source maps to Sentry and instrument `load` functions for tracing if it's configured.
@@ -453,15 +424,14 @@ Let's test your setup and confirm that Sentry is working correctly and sending d
453
424
454
425
To verify that Sentry captures errors and creates issues in your Sentry project, create a test page, for example, at `src/routes/sentry-example/+page.svelte` with a button that throws an error when clicked:
0 commit comments