Skip to content

Commit

Permalink
chore(build/sentry): default to dev environment
Browse files Browse the repository at this point in the history
  • Loading branch information
caugner committed Apr 4, 2023
1 parent 4dba840 commit 218cb10
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion build/sentry.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,11 @@ import { CaptureConsole } from "@sentry/integrations";

export function initSentry(
dsn: string,
options?: Omit<Sentry.NodeOptions, "dsn" | "integrations">
options?: Omit<Sentry.NodeOptions, "dsn" | "environment" | "integrations">
) {
Sentry.init({
dsn,
environment: process.env.SENTRY_ENVIRONMENT || "dev",
integrations: [new CaptureConsole({ levels: ["warn", "error", "assert"] })],
tracesSampleRate: 1.0,
...options,
Expand Down

0 comments on commit 218cb10

Please sign in to comment.