Skip to content

Commit efeea2f

Browse files
authored
docs(svelte): Update getting started snippet (#12000)
1 parent 8e588bd commit efeea2f

File tree

4 files changed

+11
-8
lines changed

4 files changed

+11
-8
lines changed

docs/platforms/unreal/index.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ PublicDependencyModuleNames.AddRange(new string[] { ..., "Sentry" });
7878
The minimum configuration required is the [DSN](/product/sentry-basics/dsn-explainer/) of your project:
7979

8080

81-
```bash
81+
``` {tabTitle: Public DSN}
8282
___PUBLIC_DSN___
8383
```
8484

platform-includes/getting-started-config/javascript.svelte.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
11
To use the SDK, initialize it in your Svelte entry point before bootstrapping your app. In a typical Svelte project, that is your `main.js` or `main.ts` file.
22

33

4-
```javascript {filename: main.js} {"onboardingOptions": {"performance": "10, 13-20", "session-replay": "11, 21-25"}}
4+
```javascript {filename: main.js} {"onboardingOptions": {"performance": "10, 13-20", "session-replay": "11, 23-29"}}
55
import "./app.css";
66
import App from "./App.svelte";
77

88
import * as Sentry from "@sentry/svelte";
99

1010
// Initialize the Sentry SDK here
1111
Sentry.init({
12-
dsn: "<Sentry DSN>",
12+
dsn: "___PUBLIC_DSN___",
1313
integrations: [
1414
Sentry.browserTracingIntegration(),
1515
Sentry.replayIntegration(),

platform-includes/getting-started-config/unity.mdx

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
The minimum configuration required is the [DSN](/product/sentry-basics/dsn-explainer/) to your project.
22

3-
4-
```
5-
___PUBLIC_DSN___
3+
```json {tabTitle: Public DSN}
4+
{
5+
"public-dsn": "___PUBLIC_DSN___"
6+
}
67
```
78

89
Sentry can be configured via the Sentry configuration window or [programatically](/platforms/unity/configuration/options/).

platform-includes/getting-started-config/unreal.mdx

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,10 @@
11
The minimum configuration required is the [DSN](/product/sentry-basics/dsn-explainer/) of your project:
22

33

4-
```
5-
___PUBLIC_DSN___
4+
```json {tabTitle: Public DSN}
5+
{
6+
"public-dsn": "___PUBLIC_DSN___"
7+
}
68
```
79

810
<Note>

0 commit comments

Comments
 (0)