Skip to content

Commit

Permalink
chore: wip
Browse files Browse the repository at this point in the history
  • Loading branch information
devthejo committed Feb 4, 2025
1 parent 7f9a283 commit 7671601
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 2 deletions.
6 changes: 4 additions & 2 deletions packages/app/next.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -102,20 +102,22 @@ module.exports = withSentryConfig(
assets: ".next/**/*.{js,map}",
ignore: ["node_modules/**/*"],
rewrite: true,
stripPrefix: ["webpack://_N_E/", "webpack://"],
urlPrefix: "~/_next",
stripPrefix: ["webpack://_N_E/", "webpack://", "app://"],
urlPrefix: "app:///_next",
},

// Debug and release configuration
silent: false,
debug: true,
release: process.env.SENTRY_RELEASE || process.env.NEXT_PUBLIC_GITHUB_SHA || "dev",
dist: process.env.NEXT_PUBLIC_GITHUB_SHA || "dev",
setCommits: {
auto: true,
ignoreMissing: true,
},
deploy: {
env: process.env.NEXT_PUBLIC_EGAPRO_ENV || "development",
dist: process.env.NEXT_PUBLIC_GITHUB_SHA || "dev",
},
injectBuildInformation: true,
},
Expand Down
1 change: 1 addition & 0 deletions packages/app/sentry.client.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ Sentry.init({
dsn: process.env.NEXT_PUBLIC_SENTRY_DSN,
environment: ENVIRONMENT,
debug: true, // Temporarily enable debug mode to troubleshoot
dist: process.env.NEXT_PUBLIC_GITHUB_SHA || "dev",

// Enable tunneling to avoid ad-blockers (using custom implementation for self-hosted instance)
tunnel: "/api/monitoring/envelope",
Expand Down
1 change: 1 addition & 0 deletions packages/app/sentry.edge.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ Sentry.init({
dsn: process.env.NEXT_PUBLIC_SENTRY_DSN,
environment: ENVIRONMENT,
debug: true, // Temporarily enable debug mode to troubleshoot
dist: process.env.NEXT_PUBLIC_GITHUB_SHA || "dev",

// Performance monitoring and source maps
enableTracing: true,
Expand Down
1 change: 1 addition & 0 deletions packages/app/sentry.server.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ Sentry.init({
dsn: process.env.NEXT_PUBLIC_SENTRY_DSN,
environment: ENVIRONMENT,
debug: true, // Temporarily enable debug mode to troubleshoot
dist: process.env.NEXT_PUBLIC_GITHUB_SHA || "dev",

// Performance monitoring and source maps
enableTracing: true,
Expand Down

0 comments on commit 7671601

Please sign in to comment.