feat(observability): add sentry monitoring
This commit is contained in:
+13
-1
@@ -1,3 +1,4 @@
|
||||
import { withSentryConfig } from "@sentry/nextjs";
|
||||
import type { NextConfig } from "next";
|
||||
import { withSerwist } from "@serwist/turbopack";
|
||||
|
||||
@@ -36,4 +37,15 @@ const nextConfig: NextConfig = {
|
||||
},
|
||||
};
|
||||
|
||||
export default withSerwist(nextConfig);
|
||||
export default withSentryConfig(withSerwist(nextConfig), {
|
||||
org: process.env.SENTRY_ORG ?? "shenzhen-banlv-zhidao-technolo",
|
||||
project: process.env.SENTRY_PROJECT ?? "javascript-nextjs",
|
||||
silent: !process.env.CI,
|
||||
widenClientFileUpload: true,
|
||||
webpack: {
|
||||
automaticVercelMonitors: true,
|
||||
treeshake: {
|
||||
removeDebugLogging: true,
|
||||
},
|
||||
},
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user