Skip to content

Commit 137bc69

Browse files
committed
Fix Vite DSN env usage and ignore generated router types
1 parent 2e5c67f commit 137bc69

File tree

9 files changed

+3
-255
lines changed

9 files changed

+3
-255
lines changed

sentry-javascript/19580/.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
.react-router/

sentry-javascript/19580/.react-router/types/+future.ts

Lines changed: 0 additions & 9 deletions
This file was deleted.

sentry-javascript/19580/.react-router/types/+routes.ts

Lines changed: 0 additions & 43 deletions
This file was deleted.

sentry-javascript/19580/.react-router/types/+server-build.d.ts

Lines changed: 0 additions & 18 deletions
This file was deleted.

sentry-javascript/19580/.react-router/types/app/+types/root.ts

Lines changed: 0 additions & 59 deletions
This file was deleted.

sentry-javascript/19580/.react-router/types/app/routes/+types/home.ts

Lines changed: 0 additions & 62 deletions
This file was deleted.

sentry-javascript/19580/.react-router/types/app/routes/+types/items.$id.ts

Lines changed: 0 additions & 62 deletions
This file was deleted.

sentry-javascript/19580/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ The root cause is in the patched `navigate` function which uses `String(args[0])
1616

1717
1. Set your Sentry DSN:
1818
```bash
19-
export SENTRY_DSN=<your-dsn>
19+
export VITE_SENTRY_DSN=<your-dsn>
2020
```
2121

2222
2. Install dependencies:

sentry-javascript/19580/app/entry.client.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import { hydrateRoot } from "react-dom/client";
44
import { HydratedRouter } from "react-router/dom";
55

66
Sentry.init({
7-
dsn: process.env.SENTRY_DSN || "",
7+
dsn: import.meta.env.VITE_SENTRY_DSN || "",
88
integrations: [Sentry.browserTracingIntegration()],
99
tracesSampleRate: 1.0,
1010
debug: true, // Enable debug to see transaction names in console

0 commit comments

Comments
 (0)