Skip to content

Commit

Permalink
add missing package
Browse files Browse the repository at this point in the history
  • Loading branch information
elie222 committed Oct 30, 2024
1 parent 77dc348 commit 69c83b2
Show file tree
Hide file tree
Showing 3 changed files with 45 additions and 15 deletions.
5 changes: 2 additions & 3 deletions apps/web/instrumentation.ts
Original file line number Diff line number Diff line change
@@ -1,12 +1,11 @@
/* eslint-disable no-process-env */
import * as Sentry from "@sentry/nextjs";
import { env } from "process";

export function register() {
if (process.env.NEXT_RUNTIME === "nodejs") {
// this is your Sentry.init call from `sentry.server.config.js|ts`
Sentry.init({
dsn: env.NEXT_PUBLIC_SENTRY_DSN,
dsn: process.env.NEXT_PUBLIC_SENTRY_DSN,
// Adjust this value in production, or use tracesSampler for greater control
tracesSampleRate: 1,
// Setting this option to true will print useful information to the console while you're setting up Sentry.
Expand All @@ -19,7 +18,7 @@ export function register() {
// This is your Sentry.init call from `sentry.edge.config.js|ts`
if (process.env.NEXT_RUNTIME === "edge") {
Sentry.init({
dsn: env.NEXT_PUBLIC_SENTRY_DSN,
dsn: process.env.NEXT_PUBLIC_SENTRY_DSN,
// Adjust this value in production, or use tracesSampler for greater control
tracesSampleRate: 1,
// Setting this option to true will print useful information to the console while you're setting up Sentry.
Expand Down
1 change: 1 addition & 0 deletions apps/web/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,7 @@
"nuqs": "^2.0.4",
"openai": "^4.68.4",
"p-queue": "^8.0.1",
"p-retry": "^6.2.0",
"posthog-js": "^1.177.0",
"posthog-node": "^4.2.1",
"prettier": "^3.3.3",
Expand Down
54 changes: 42 additions & 12 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 69c83b2

Please sign in to comment.