ci(custom): update drone.yml

This commit is contained in:
2024-03-08 17:51:42 +08:00
parent 59f53fbc37
commit e05af0b396
9 changed files with 161 additions and 357 deletions

View File

@@ -3,7 +3,6 @@ import { setupRouterGuard } from './guard'
import { basicRoutes, EMPTY_ROUTE, NOT_FOUND_ROUTE } from './routes'
import { getToken, isNullOrWhitespace } from '@/utils'
import { usePermissionStore } from '@/store'
import * as Sentry from '@sentry/vue'
const isHash = false
export const router = createRouter({
@@ -15,22 +14,6 @@ export const router = createRouter({
export async function setupRouter(app) {
await addDynamicRoutes()
setupRouterGuard(router)
if (import.meta.env.VITE_SENTRY === 'true') {
Sentry.init({
app,
dsn: 'https://1c158d5f832eef396e69447959d902d2@w.huakk.top/12',
integrations: [
new Sentry.BrowserTracing({
tracePropagationTargets: ['localhost', /^https:\/\/w\.huakk\.top\/api/],
routingInstrumentation: Sentry.vueRouterInstrumentation(router),
}),
new Sentry.Replay(),
],
tracesSampleRate: 1.0,
replaysSessionSampleRate: 0.1,
replaysOnErrorSampleRate: 1.0,
})
}
app.use(router)
}