feat: configure lightweight monitoring (Sentry, UptimeRobot, Analytics)

This commit is contained in:
张翔 committed 2026-03-10 17:36:37 +08:00
1 parent dbba1123b9
commit 1988b53388
4 files changed
+115 -215

No files matched your search

+8 -2
View File
@@ -1,7 +1,13 @@
import * as Sentry from '@sentry/nextjs';
import * as Sentry from "@sentry/nextjs";
Sentry.init({
dsn: process.env.NEXT_PUBLIC_SENTRY_DSN,
tracesSampleRate: 1.0,
environment: process.env.NODE_ENV,
tracesSampleRate: 0.1,
beforeSend(event) {
if (process.env.NODE_ENV === "development") {
return null;
}
return event;
},
});