Merged in feat/sentry (pull request #1089)
This commit is contained in:
committed by
Joakim Jäderberg
parent
e0c5b59860
commit
3982b1ba56
@@ -1,3 +1,4 @@
|
||||
import * as Sentry from "@sentry/nextjs"
|
||||
import createJiti from "jiti"
|
||||
import { fileURLToPath } from "url"
|
||||
|
||||
@@ -292,4 +293,23 @@ const nextConfig = {
|
||||
},
|
||||
}
|
||||
|
||||
export default nextConfig
|
||||
export default Sentry.withSentryConfig(nextConfig, {
|
||||
org: "scandic-hotels",
|
||||
project: "scandic-web",
|
||||
enabled: process.env.NODE_ENV !== "development",
|
||||
authToken: process.env.SENTRY_AUTH_TOKEN,
|
||||
|
||||
// Only print logs for uploading source maps in CI
|
||||
silent: !process.env.CI,
|
||||
|
||||
// Upload a larger set of source maps for prettier stack traces (increases build time)
|
||||
widenClientFileUpload: true,
|
||||
|
||||
// Automatically annotate React components to show their full name in breadcrumbs and session replay
|
||||
reactComponentAnnotation: {
|
||||
enabled: true,
|
||||
},
|
||||
|
||||
hideSourceMaps: true,
|
||||
disableLogger: true,
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user