ci(custom): 调整nginx配置

This commit is contained in:
2023-11-21 16:58:51 +08:00
parent 5653981f97
commit e0fe559603
5 changed files with 1573 additions and 4465 deletions

View File

@@ -15,22 +15,22 @@ export const router = createRouter({
export async function setupRouter(app) {
await addDynamicRoutes()
setupRouterGuard(router)
// if (import.meta.env.VITE_SENTRY) {
Sentry.init({
app,
dsn: 'https://adad4faa9b08aa08438ef33cba7962ab@w.huakk.top/6',
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,
})
// }
if (import.meta.env.VITE_SENTRY) {
Sentry.init({
app,
dsn: 'https://adad4faa9b08aa08438ef33cba7962ab@w.huakk.top/6',
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)
}