Skip to content

Commit

Permalink
Fix TS error in Sentry init
Browse files Browse the repository at this point in the history
  • Loading branch information
amoeba committed Jan 3, 2022
1 parent 71b7d7d commit 3400cf5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ import { Integrations } from "@sentry/tracing";

if (import.meta.env.SENTRY_DSN) {
Sentry.init({
dsn: import.meta.env.NEXT_PUBLIC_SENTRY_DSN,
dsn: import.meta.env.NEXT_PUBLIC_SENTRY_DSN + "", // + "" is to get around TS
integrations: [
new Integrations.BrowserTracing({
routingInstrumentation: Sentry.vueRouterInstrumentation(router),
Expand Down

1 comment on commit 3400cf5

@vercel
Copy link

@vercel vercel bot commented on 3400cf5 Jan 3, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.