mirror of
https://github.com/marcogll/TaxHacker_s23.git
synced 2026-01-13 21:35:19 +00:00
feat: add sentry bug reporting
This commit is contained in:
@@ -1,3 +1,4 @@
|
||||
import { withSentryConfig } from "@sentry/nextjs"
|
||||
import type { NextConfig } from "next"
|
||||
|
||||
const nextConfig: NextConfig = {
|
||||
@@ -11,4 +12,15 @@ const nextConfig: NextConfig = {
|
||||
},
|
||||
}
|
||||
|
||||
export default nextConfig
|
||||
const isSentryEnabled = process.env.NEXT_PUBLIC_SENTRY_DSN && process.env.SENTRY_ORG && process.env.SENTRY_PROJECT
|
||||
|
||||
export default isSentryEnabled
|
||||
? withSentryConfig(nextConfig, {
|
||||
silent: !process.env.CI,
|
||||
org: process.env.SENTRY_ORG,
|
||||
project: process.env.SENTRY_PROJECT,
|
||||
disableLogger: true,
|
||||
widenClientFileUpload: true,
|
||||
tunnelRoute: "/monitoring",
|
||||
})
|
||||
: nextConfig
|
||||
|
||||
Reference in New Issue
Block a user