File tree Expand file tree Collapse file tree 2 files changed +23
-2
lines changed Expand file tree Collapse file tree 2 files changed +23
-2
lines changed Original file line number Diff line number Diff line change @@ -48,4 +48,6 @@ next-env.d.ts
48
48
# Sentry Auth Token
49
49
.sentryclirc
50
50
51
- certificates
51
+ certificates
52
+ # Sentry Config File
53
+ .env.sentry-build-plugin
Original file line number Diff line number Diff line change 1
1
// This config file contains only the necessary next config needed in production
2
+ const { withSentryConfig } = require ( "@sentry/nextjs" ) ;
3
+
2
4
/** @type {import('next').NextConfig } */
3
5
const nextConfig = {
4
6
experimental : {
@@ -24,4 +26,21 @@ const nextConfig = {
24
26
} ,
25
27
} ;
26
28
27
- module . exports = nextConfig ;
29
+ const sentryWebpackPluginOptions = {
30
+ org : "ystv" ,
31
+ project : "calendar2023" ,
32
+ } ;
33
+
34
+ const sentryOptions = {
35
+ // Upload additional client files (increases upload size)
36
+ widenClientFileUpload : true ,
37
+
38
+ // Hides source maps from generated client bundles
39
+ hideSourceMaps : true ,
40
+ } ;
41
+
42
+ module . exports = withSentryConfig (
43
+ nextConfig ,
44
+ sentryWebpackPluginOptions ,
45
+ sentryOptions ,
46
+ ) ;
You can’t perform that action at this time.
0 commit comments