Commit 6e3fe22d authored by 张子雨's avatar 张子雨

feat: sentry

parent b03a76f6
/* eslint-disable no-console */ /* eslint-disable no-console */
import * as Sentry from '@sentry/react'; import * as Sentry from '@sentry/react';
import localStorage from '@/utils/localStorage'; import localStorage from '@/utils/localStorage';
// process.env.SENTRY_ENV !== 'test' 去掉测试环境不会报错 // process.env.SENTRY_ENV !== 'test' 加上测试环境不会报错
if (process.env.NODE_ENV === 'production') { if (process.env.NODE_ENV === 'production' && process.env.SENTRY_ENV !== 'test') {
try { try {
Sentry.init({ Sentry.init({
dsn: 'https://b3f60c62e1234e26a5b851b9f26fba07@sentry.q-gp.com/34', dsn: 'https://b3f60c62e1234e26a5b851b9f26fba07@sentry.q-gp.com/34',
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment