Skip to content

Commit 71565dc

Browse files
committed
use astro cli for adding sentry integration
1 parent 6d96162 commit 71565dc

File tree

1 file changed

+10
-8
lines changed

1 file changed

+10
-8
lines changed

platform-includes/getting-started-install/javascript.astro.mdx

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2,35 +2,37 @@
22
options={["error-monitoring", "performance", "profiling", "session-replay"]}
33
/>
44

5-
<OnboardingOption optionId="profiling" hideForThisOption>
5+
Install the SDK by using the `astro` CLI:
66

77
```bash {tabTitle:npm}
8-
npm install @sentry/astro --save
8+
npx astro add @sentry/astro
99
```
1010

1111
```bash {tabTitle:yarn}
12-
yarn add @sentry/astro
12+
yarn astro add @sentry/astro
1313
```
1414

1515
```bash {tabTitle:pnpm}
16-
pnpm add @sentry/astro
16+
pnpm astro add @sentry/astro
1717
```
1818

19-
</OnboardingOption>
19+
The `astro` CLI installs the SDK package and adds the Sentry integration to your `astro.config.mjs` file.
20+
2021

2122
<OnboardingOption optionId="profiling">
2223

2324
```bash {tabTitle:npm}
24-
npm install @sentry/astro @sentry/profiling-node --save
25+
npm install @sentry/profiling-node
2526
```
2627

2728
```bash {tabTitle:yarn}
28-
yarn add @sentry/astro @sentry/profiling-node
29+
yarn add @sentry/profiling-node
2930
```
3031

3132
```bash {tabTitle:pnpm}
32-
pnpm add @sentry/astro @sentry/profiling-node
33+
pnpm add @sentry/profiling-node
3334
```
3435

3536
</OnboardingOption>
3637

38+
To finish the setup, configure the Sentry integration.

0 commit comments

Comments
 (0)