Skip to content

Commit

Permalink
feat(spa): enable sentry (#674)
Browse files Browse the repository at this point in the history
* feat(spa): sentry

* feat(spa): upload more
  • Loading branch information
uonr authored Dec 12, 2024
1 parent 9529689 commit 200c360
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
1 change: 0 additions & 1 deletion .env
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,3 @@ NEXT_TELEMETRY_DISABLED=1
PUBLIC_MEDIA_URL=https://media.boluo.chat
APP_URL=https://app.boluo.chat
SITE_URL=https://site.boluo.chat
SENTRY_TUNNEL=https://app.boluo.chat/tunnel/
6 changes: 4 additions & 2 deletions apps/spa/next.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,12 +28,14 @@ const config = {
};
if (process.env.SENTRY_DSN) {
module.exports = withSentryConfig(config, {
org: 'mythal-rpg' ?? process.env.SENTRY_ORG,
project: 'boluo' ?? process.env.SENTRY_PROJECT,
org: 'mythal' ?? process.env.SENTRY_ORG,
sentryUrl: process.env.SENTRY_URL ?? 'https://sentry.io/',
project: 'boluo-app' ?? process.env.SENTRY_PROJECT,
autoInstrumentServerFunctions: false,
autoInstrumentMiddleware: false,
disableLogger: true,
authToken: process.env.SENTRY_TOKEN,
widenClientFileUpload: true,
silent: true,
});
} else if (process.env.ANALYZE) {
Expand Down

0 comments on commit 200c360

Please sign in to comment.