build(custom): 增加错误上报监控

This commit is contained in:
2023-11-21 18:26:45 +08:00
parent ba00cf26a6
commit 5c279bdbbd
20 changed files with 4592 additions and 11177 deletions

View File

@@ -5,6 +5,7 @@ import { NaiveUiResolver } from 'unplugin-vue-components/resolvers'
import { FileSystemIconLoader } from 'unplugin-icons/loaders'
import IconsResolver from 'unplugin-icons/resolver'
import mkcert from 'vite-plugin-mkcert'
import { sentryVitePlugin } from '@sentry/vite-plugin'
/**
* * unplugin-icons插件自动引入iconify图标
@@ -45,4 +46,11 @@ export default [
customDomId: '__CUSTOM_SVG_ICON__',
}),
mkcert(),
sentryVitePlugin({
authToken:
'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',
org: 'sentry',
project: 'jdt-mer',
url: 'https://w.huakk.top',
}),
]