File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11import * as Sentry from "@sentry/nextjs" ;
22Sentry . init ( {
33 enabled : process . env . NODE_ENV !== 'development' ,
4- dsn : "https://db719a3358e14ebc86cc975ea04b0dac@bugsink.utcode.net/1" ,
4+ dsn : process . env . SENTRY_DSN ,
55 // Adds request headers and IP for users
66 sendDefaultPii : true ,
77} ) ;
Original file line number Diff line number Diff line change @@ -17,6 +17,9 @@ const nextConfig: NextConfig = {
1717 typescript : {
1818 ignoreBuildErrors : true ,
1919 } ,
20+ env : {
21+ SENTRY_DSN : process . env . SENTRY_DSN ,
22+ } ,
2023 serverExternalPackages : [
2124 "@prisma/client" ,
2225 ".prisma/client" ,
@@ -181,10 +184,10 @@ const nextConfig: NextConfig = {
181184} ;
182185
183186export default withSentryConfig ( nextConfig , {
184- org : "bugsinkhasnoorgs" ,
185- project : "ignoredfornow" ,
186- sentryUrl : "https://bugsink.utcode.net" ,
187- debug : true , // important for debugging
187+ org : process . env . SENTRY_ORG ,
188+ project : process . env . SENTRY_PROJECT ,
189+ sentryUrl : process . env . SENTRY_URL ,
190+ // debug: true, // important for debugging
188191
189192 // Use a fixed route (recommended)
190193 tunnelRoute : "/monitoring" ,
Original file line number Diff line number Diff line change 11import * as Sentry from "@sentry/nextjs" ;
22Sentry . init ( {
33 enabled : process . env . NODE_ENV !== 'development' ,
4- dsn : "https://db719a3358e14ebc86cc975ea04b0dac@bugsink.utcode.net/1" ,
4+ dsn : process . env . SENTRY_DSN ,
55 // Adds request headers and IP for users
66 sendDefaultPii : true ,
77} ) ;
Original file line number Diff line number Diff line change 11import * as Sentry from "@sentry/nextjs" ;
22Sentry . init ( {
33 enabled : process . env . NODE_ENV !== 'development' ,
4- dsn : "https://db719a3358e14ebc86cc975ea04b0dac@bugsink.utcode.net/1" ,
4+ dsn : process . env . SENTRY_DSN ,
55 // Adds request headers and IP for users
66 sendDefaultPii : true ,
77} ) ;
You can’t perform that action at this time.
0 commit comments