@sentry/nextjs
参考
code:next.config.js
const { withSentryConfig } = require("@sentry/nextjs");
const config = {
sentry: {...},
...
};
const sentryWebpackPluginOptions = {
silent: true,
...
};
module.exports = withSentryConfig(config, sentryWebpackPluginOptions);
2箇所指定する場所がある
後者の方の設定が↓
silent
wizardで生成されるやつ
next.config.wizardcopy.js
?
sentry.client.config.js
?
sentry.server.config.js
?
これがないとnext buildに失敗する
CI上にも設定しないといけないのか
自動でsource mapをuploadするときに使う
.gitignoreの対象にする
authってどこで確認できる?
projectごとに異なる?
project全体で同じっぽいな
_error.js
?
docsを読む
SENTRY FOR NEXT.JS
Getting Started
Manual Setup
Configuration
Usage
Source Maps
Troubleshooting
PERFORMANCE MONITORING
Set Up
Instrumentation
Connect Services
Troubleshooting
ENRICHING EVENTS
Add Context
Identify Users
Customize Tags
Attachments
Breadcrumbs
User Feedback
Scopes and Hubs
Event Processors
DATA MANAGEMENT
Scrubbing Sensitive Data
PRODUCT GUIDES
Sentry Basics
Issues
Projects
Alerts
Performance Monitoring
Releases
Discover Queries
Dashboards
Stats
User Feedback
Security Policy Reporting
Data Management
Account Management
Relay
Command Line Interface
Security & Legal
Integrations