File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1- const withBundleAnalyzer = require ( "@next/bundle-analyzer" ) ( { } ) ;
1+ const { withSentryConfig } = require ( "@sentry/nextjs" ) ;
22
33const ContentSecurityPolicy = `
44 script-src 'self' 'unsafe-eval' 'unsafe-inline' blob: *;
@@ -46,8 +46,7 @@ const securityHeaders = [
4646 } ,
4747] ;
4848
49- // Your existing module.exports
50- const moduleExports = {
49+ const nextConfig = {
5150 async headers ( ) {
5251 return [
5352 {
@@ -109,17 +108,8 @@ const moduleExports = {
109108 } ,
110109} ;
111110
112- module . exports =
113- process . env . ANALYZE === "true"
114- ? withBundleAnalyzer ( moduleExports )
115- : moduleExports ;
116-
117- // Injected content via Sentry wizard below
118-
119- const { withSentryConfig } = require ( "@sentry/nextjs" ) ;
120-
121111module . exports = withSentryConfig (
122- module . exports ,
112+ nextConfig ,
123113 {
124114 // For all available options, see:
125115 // https://github.com/getsentry/sentry-webpack-plugin#options
Original file line number Diff line number Diff line change @@ -5,12 +5,6 @@ export default function AuthLayout({ children }) {
55 < div className = "block h-full min-h-full" >
66 < HeaderComponent />
77 { children }
8- < script
9- data-jsd-embedded
10- data-key = "0b2ca96c-0f7b-4bb3-b51c-e58d76d8e37d"
11- data-base-url = "https://jsd-widget.atlassian.com"
12- src = "https://jsd-widget.atlassian.com/assets/embed.js"
13- />
148 </ div >
159 ) ;
1610}
Original file line number Diff line number Diff line change 1- const withBundleAnalyzer = require ( "@next/bundle-analyzer" ) ( { } ) ;
1+ const { withSentryConfig } = require ( "@sentry/nextjs" ) ;
22
33const ContentSecurityPolicy = `
44 script-src 'self' 'unsafe-eval' 'unsafe-inline' *;
55 style-src 'self' data: 'unsafe-inline' maxcdn.bootstrapcdn.com cdn.jsdelivr.net cdn.zapier.com fonts.googleapis.com;
66 img-src 'self' * data: blob:;
77 font-src 'self' data: maxcdn.bootstrapcdn.com cdn.jsdelivr.net fonts.gstatic.com;
8- connect-src 'self' wss: *.supabase.co *.changes.page manageprompt.com zapier.com *.zapier.com www.google.com *.atlassian.com ;
8+ connect-src 'self' wss: *.supabase.co *.changes.page manageprompt.com zapier.com *.zapier.com www.google.com;
99 worker-src 'self' blob:;
1010 report-to default
1111` ;
@@ -48,7 +48,7 @@ const securityHeaders = [
4848 } ,
4949] ;
5050
51- const moduleExports = {
51+ const nextConfig = {
5252 async headers ( ) {
5353 return [
5454 {
@@ -68,18 +68,8 @@ const moduleExports = {
6868 } ,
6969} ;
7070
71- // ensure that your source maps include changes from all other Webpack plugins
72- module . exports =
73- process . env . ANALYZE === "true"
74- ? withBundleAnalyzer ( moduleExports )
75- : moduleExports ;
76-
77- // Injected content via Sentry wizard below
78-
79- const { withSentryConfig } = require ( "@sentry/nextjs" ) ;
80-
8171module . exports = withSentryConfig (
82- module . exports ,
72+ nextConfig ,
8373 {
8474 // For all available options, see:
8575 // https://github.com/getsentry/sentry-webpack-plugin#options
You can’t perform that action at this time.
0 commit comments