-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: integrate with Sentry (TT-1579) (#7)
Har ikke lagt inn Auth-token env siden denne er koblet på brukernivå. Dette brukes for opplasting av sourcemaps og er ikke kritisk for å kunne dra nytte av Sentry. Høres ut som vi uansett har behov for oppdatering av Sentry for å lettere kunne laste opp sourcemaps.
- Loading branch information
1 parent
2d199ae
commit 0fd4b21
Showing
10 changed files
with
659 additions
and
37 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -36,4 +36,6 @@ yarn-error.log* | |
next-env.d.ts | ||
|
||
# IDE | ||
/.idea | ||
/.idea | ||
# Sentry Config File | ||
.sentryclirc |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,22 @@ | ||
import {withSentryConfig} from "@sentry/nextjs"; | ||
/** @type {import('next').NextConfig} */ | ||
const nextConfig = { | ||
output: "standalone", | ||
basePath: "/hugin", | ||
}; | ||
|
||
export default nextConfig; | ||
export default withSentryConfig(nextConfig, { | ||
// For all available options, see: | ||
// https://github.com/getsentry/sentry-webpack-plugin#options | ||
silent: true, | ||
org: process.env.SENTRY_ORG, | ||
project: process.env.SENTRY_PROJECT, | ||
url: process.env.SENTRY_URL | ||
}, { | ||
// For all available options, see: | ||
// https://docs.sentry.io/platforms/javascript/guides/nextjs/manual-setup/ | ||
widenClientFileUpload: true, | ||
transpileClientSDK: true, | ||
hideSourceMaps: true, | ||
disableLogger: true | ||
}); |
Oops, something went wrong.