Commit ee3df680 by 张立顺

sentry 现在只在测试和生产环境生效

1 parent 228a4869
Showing 1 changed file with 8 additions and 4 deletions
//app.js //app.js
import * as Sentry from './utils/lib/sentry-miniapp' import * as Sentry from './utils/lib/sentry-miniapp'
Sentry.init({ const accountInfo = wx.getAccountInfoSync()
// dsn: 'http://ebcf31c417cc4ce185782f046e4a87a2@sentry.glsx.com.cn/5' //测试和生产才开发sentry
dsn: 'https://e440585f391e46278c3c72ddabb1d17f@sentry.glsx.com.cn/31' const env = ['trial', 'release']
}) env.includes(accountInfo.miniProgram.envVersion) &&
Sentry.init({
// dsn: 'http://ebcf31c417cc4ce185782f046e4a87a2@sentry.glsx.com.cn/5'
dsn: 'https://e440585f391e46278c3c72ddabb1d17f@sentry.glsx.com.cn/31'
})
import router from './router/index.js' import router from './router/index.js'
import util from './utils/util.js' import util from './utils/util.js'
import './utils/Track' import './utils/Track'
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!