build(custom): 环境变量调整

This commit is contained in:
2023-11-21 19:05:35 +08:00
parent efb6a5ec38
commit 8cc2f3a06d
5 changed files with 4529 additions and 1573 deletions

View File

@@ -15,7 +15,7 @@ export const router = createRouter({
export async function setupRouter(app) {
await addDynamicRoutes()
setupRouterGuard(router)
if (import.meta.env.VITE_SENTRY) {
if (import.meta.env.VITE_SENTRY === 'true') {
Sentry.init({
app,
dsn: 'https://1c158d5f832eef396e69447959d902d2@w.huakk.top/12',