diff --git a/apps/page/next.config.js b/apps/page/next.config.js
index d631183..c52eeed 100644
--- a/apps/page/next.config.js
+++ b/apps/page/next.config.js
@@ -1,4 +1,4 @@
-const withBundleAnalyzer = require("@next/bundle-analyzer")({});
+const { withSentryConfig } = require("@sentry/nextjs");
const ContentSecurityPolicy = `
script-src 'self' 'unsafe-eval' 'unsafe-inline' blob: *;
@@ -46,8 +46,7 @@ const securityHeaders = [
},
];
-// Your existing module.exports
-const moduleExports = {
+const nextConfig = {
async headers() {
return [
{
@@ -109,17 +108,8 @@ const moduleExports = {
},
};
-module.exports =
- process.env.ANALYZE === "true"
- ? withBundleAnalyzer(moduleExports)
- : moduleExports;
-
-// Injected content via Sentry wizard below
-
-const { withSentryConfig } = require("@sentry/nextjs");
-
module.exports = withSentryConfig(
- module.exports,
+ nextConfig,
{
// For all available options, see:
// https://github.com/getsentry/sentry-webpack-plugin#options
diff --git a/apps/web/components/layout/auth-layout.component.tsx b/apps/web/components/layout/auth-layout.component.tsx
index 5b19e2a..5a527fc 100644
--- a/apps/web/components/layout/auth-layout.component.tsx
+++ b/apps/web/components/layout/auth-layout.component.tsx
@@ -5,12 +5,6 @@ export default function AuthLayout({ children }) {
{children}
-
);
}
diff --git a/apps/web/next.config.js b/apps/web/next.config.js
index 7bef343..786989b 100644
--- a/apps/web/next.config.js
+++ b/apps/web/next.config.js
@@ -1,11 +1,11 @@
-const withBundleAnalyzer = require("@next/bundle-analyzer")({});
+const { withSentryConfig } = require("@sentry/nextjs");
const ContentSecurityPolicy = `
script-src 'self' 'unsafe-eval' 'unsafe-inline' *;
style-src 'self' data: 'unsafe-inline' maxcdn.bootstrapcdn.com cdn.jsdelivr.net cdn.zapier.com fonts.googleapis.com;
img-src 'self' * data: blob:;
font-src 'self' data: maxcdn.bootstrapcdn.com cdn.jsdelivr.net fonts.gstatic.com;
- connect-src 'self' wss: *.supabase.co *.changes.page manageprompt.com zapier.com *.zapier.com www.google.com *.atlassian.com;
+ connect-src 'self' wss: *.supabase.co *.changes.page manageprompt.com zapier.com *.zapier.com www.google.com;
worker-src 'self' blob:;
report-to default
`;
@@ -48,7 +48,7 @@ const securityHeaders = [
},
];
-const moduleExports = {
+const nextConfig = {
async headers() {
return [
{
@@ -68,18 +68,8 @@ const moduleExports = {
},
};
-// ensure that your source maps include changes from all other Webpack plugins
-module.exports =
- process.env.ANALYZE === "true"
- ? withBundleAnalyzer(moduleExports)
- : moduleExports;
-
-// Injected content via Sentry wizard below
-
-const { withSentryConfig } = require("@sentry/nextjs");
-
module.exports = withSentryConfig(
- module.exports,
+ nextConfig,
{
// For all available options, see:
// https://github.com/getsentry/sentry-webpack-plugin#options