Skip to content

Commit ea27349

Browse files
nicohrubeccodex
andauthored
docs: Fix Solid, SolidStart, and NestJS README snippets (#24571)
Fix the Solid and SolidStart README examples to call the imported router wrapper, and remove the duplicate NestJS `MonitorConfig` import so the snippets use valid imports. Closes #24548. Co-authored-by: OpenAI Codex <codex@openai.com>
1 parent 84027a1 commit ea27349

3 files changed

Lines changed: 3 additions & 3 deletions

File tree

‎packages/nestjs/README.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ after each cron job run.
133133

134134
```typescript
135135
import { Cron } from '@nestjs/schedule';
136-
import { SentryCron, MonitorConfig } from '@sentry/nestjs';
136+
import { SentryCron } from '@sentry/nestjs';
137137
import type { MonitorConfig } from '@sentry/core';
138138

139139
const monitorConfig: MonitorConfig = {

‎packages/solid/README.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ Sentry.init({
3939
tracesSampleRate: 1.0, // Capture 100% of the transactions
4040
});
4141

42-
const SentryRouter = Sentry.withSentryRouterRouting(Router);
42+
const SentryRouter = withSentryRouterRouting(Router);
4343

4444
render(
4545
() => (

‎packages/solidstart/README.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -266,7 +266,7 @@ higher order component, which will enable Sentry to reach your router context.
266266
import { withSentryRouterRouting } from '@sentry/solidstart/solidrouter';
267267
import { Route, Router } from '@solidjs/router';
268268

269-
const SentryRouter = Sentry.withSentryRouterRouting(Router);
269+
const SentryRouter = withSentryRouterRouting(Router);
270270

271271
render(
272272
() => (

0 commit comments

Comments
 (0)