feat: updates

This commit is contained in:
qier222 2022-03-27 15:21:48 +08:00
parent 74dcb36e67
commit b5f681631e
No known key found for this signature in database
GPG key ID: 9C85007ED905F14D
15 changed files with 320 additions and 99 deletions

14
packages/main/sentry.ts Normal file
View file

@ -0,0 +1,14 @@
import * as Sentry from '@sentry/node'
import * as Tracing from '@sentry/tracing'
import pkg from '../../package.json'
Sentry.init({
dsn: 'https://2aaaa67f1c3d4d6baefafa5d58fcf340@o436528.ingest.sentry.io/6274637',
release: `yesplaymusic@${pkg.version}`,
environment: import.meta.env.MODE,
// Set tracesSampleRate to 1.0 to capture 100%
// of transactions for performance monitoring.
// We recommend adjusting this value in production
tracesSampleRate: 1.0,
})