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
Copy file name to clipboardExpand all lines: CHANGELOG.md
+14-6Lines changed: 14 additions & 6 deletions
Original file line number
Diff line number
Diff line change
@@ -14,7 +14,7 @@ Work in this release was contributed by @aloisklink, @arturovt, @benjick and @ma
14
14
15
15
-**feat(solidstart)!: Default to `--import` setup and add `autoInjectServerSentry` ([#14862](https://github.com/getsentry/sentry-javascript/pull/14862))**
16
16
17
-
To enable the SolidStart SDK, wrap your Solid Config with `withSentry`. The `sentrySolidStartVite` plugin is now automatically
17
+
To enable the SolidStart SDK, wrap your SolidStart Config with `withSentry`. The `sentrySolidStartVite` plugin is now automatically
18
18
added by `withSentry` and you can pass the Sentry build-time options like this:
19
19
20
20
```js
@@ -24,16 +24,13 @@ import { withSentry } from '@sentry/solidstart';
24
24
exportdefaultdefineConfig(
25
25
withSentry(
26
26
{
27
-
/* Your Solid config options... */
27
+
/* Your SolidStart config options... */
28
28
},
29
29
{
30
30
// Options for setting up source maps
31
31
org:process.env.SENTRY_ORG,
32
32
project:process.env.SENTRY_PROJECT,
33
33
authToken:process.env.SENTRY_AUTH_TOKEN,
34
-
35
-
// Optional: Install Sentry with a top-level import
36
-
autoInjectServerSentry:'top-level-import',
37
34
},
38
35
),
39
36
);
@@ -44,9 +41,20 @@ Add the Sentry server config in `src/instrument.server.ts`. Then, the server con
44
41
45
42
Now, there are two options to set up the SDK:
46
43
47
-
1. (recommended) Provide an `--import` CLI flag to the start command like this (path depends on your server setup):
44
+
1.**(recommended)** Provide an `--import` CLI flag to the start command like this (path depends on your server setup):
2. Add `autoInjectServerSentry: 'top-level-import'` and the Sentry config will be imported at the top of the server entry (comes with tracing limitations)
47
+
```js
48
+
withSentry(
49
+
{
50
+
/* Your SolidStart config options... */
51
+
},
52
+
{
53
+
// Optional: Install Sentry with a top-level import
0 commit comments