Ish*_*Man 10 sentry reactjs next.js
在我的项目中集成哨兵后,开发环境工作正常,但是当我尝试构建项目时,yarn build我遇到了这个错误。
Sentry CLI 插件:命令失败:/Users/ishman/Desktop/sh/web-speedhome/node_modules/@sentry/cli/sentry-cli 发布新的 RUwbSqUhmn7T-kxjDJebz 错误:API 请求失败,原因是:sentry 报告错误:无效令牌(http状态:401)
添加 --log-level=[info|debug] 或 export SENTRY_LOG_LEVEL=[info|debug] 以查看更多输出。请将完整的调试日志附加到所有错误报告中。
我的哨兵配置文件
import * as Sentry from '@sentry/nextjs'
import { SENTRY_DSN } from './env'
Sentry.init({
dsn: SENTRY_DSN,
tracesSampleRate: 1,
integrations: [new Sentry.BrowserTracing({})],
})
Run Code Online (Sandbox Code Playgroud)
和我的 Sentry.properties 文件
defaults.url=https://sentry.io/
defaults.org=org
defaults.project=project
auth.token=token
Run Code Online (Sandbox Code Playgroud)
cli.executable=../../../.npm/_npx/a8388072043b4cbc/node_modules/@sentry/cli/bin/sentry-cli
| 归档时间: |
|
| 查看次数: |
9724 次 |
| 最近记录: |