Skip to content

Commit

Permalink
chore: comment
Browse files Browse the repository at this point in the history
  • Loading branch information
hi-ogawa committed May 9, 2023
1 parent 3b30068 commit 544716c
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 3 additions & 1 deletion app/utils/sentry-utils.client.tsx
Original file line number Diff line number Diff line change
@@ -1,11 +1,13 @@
import { init } from "@sentry/browser";
import { publicConfig } from "./config";

// cf. default integrations
// https://github.com/getsentry/sentry-javascript/blob/b624bff35854ea0497f0ea07425719723a73a79b/packages/node/src/sdk.ts#L38-L57

export function initializeSentryBrowser() {
init({
dsn: publicConfig.APP_SENTRY_DSN,
environment: `${publicConfig.VERCEL_ENV ?? "local"}-client`,
release: "local",
// integrations: [],
});
}
4 changes: 3 additions & 1 deletion app/utils/sentry-utils.server.tsx
Original file line number Diff line number Diff line change
@@ -1,11 +1,13 @@
import { init } from "@sentry/node";
import { publicConfig } from "./config";

// cf. default integration
// https://github.com/getsentry/sentry-javascript/blob/b624bff35854ea0497f0ea07425719723a73a79b/packages/browser/src/sdk.ts#L26-L35

export function initializeSentryServer() {
init({
dsn: publicConfig.APP_SENTRY_DSN,
environment: `${publicConfig.VERCEL_ENV ?? "local"}-server`,
release: "local",
// integrations: [],
});
}

0 comments on commit 544716c

Please sign in to comment.