Skip to content

Commit b6f75ee

Browse files
ajitpratap0Ajit Pratap Singhclaude
authored
feat(website): add Sentry error monitoring, tracing, and session replay (#395)
* feat(website): add Sentry error boundary and withSentryConfig build wrapper Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com> * feat(website): add Sentry SDK init for client, server, and edge runtimes Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com> --------- Co-authored-by: Ajit Pratap Singh <ajitpratapsingh@Ajits-Mac-mini-2655.local> Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent e3fa6f0 commit b6f75ee

File tree

8 files changed

+3309
-117
lines changed

8 files changed

+3309
-117
lines changed

website/next.config.ts

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,13 @@
11
import type { NextConfig } from 'next';
22
import withBundleAnalyzer from '@next/bundle-analyzer';
3+
import { withSentryConfig } from '@sentry/nextjs';
34

45
const withAnalyzer = withBundleAnalyzer({
56
enabled: process.env.ANALYZE === 'true',
67
});
78

89
const nextConfig: NextConfig = {
10+
trailingSlash: true,
911
async headers() {
1012
return [
1113
{
@@ -65,4 +67,15 @@ const nextConfig: NextConfig = {
6567
},
6668
};
6769

68-
export default withAnalyzer(nextConfig);
70+
export default withSentryConfig(
71+
withAnalyzer(nextConfig),
72+
{
73+
org: process.env.SENTRY_ORG,
74+
project: process.env.SENTRY_PROJECT,
75+
authToken: process.env.SENTRY_AUTH_TOKEN,
76+
widenClientFileUpload: true,
77+
tunnelRoute: '/monitoring',
78+
silent: !process.env.CI,
79+
// Tree-shaking disabled — using Turbopack which doesn't support webpack tree-shaking
80+
}
81+
);

0 commit comments

Comments
 (0)