Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 3 additions & 13 deletions apps/page/next.config.js
Original file line number Diff line number Diff line change
@@ -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: *;
Expand Down Expand Up @@ -46,8 +46,7 @@ const securityHeaders = [
},
];

// Your existing module.exports
const moduleExports = {
const nextConfig = {
async headers() {
return [
{
Expand Down Expand Up @@ -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
Expand Down
6 changes: 0 additions & 6 deletions apps/web/components/layout/auth-layout.component.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,6 @@ export default function AuthLayout({ children }) {
<div className="block h-full min-h-full">
<HeaderComponent />
{children}
<script
data-jsd-embedded
data-key="0b2ca96c-0f7b-4bb3-b51c-e58d76d8e37d"
data-base-url="https://jsd-widget.atlassian.com"
src="https://jsd-widget.atlassian.com/assets/embed.js"
/>
</div>
);
}
18 changes: 4 additions & 14 deletions apps/web/next.config.js
Original file line number Diff line number Diff line change
@@ -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
`;
Expand Down Expand Up @@ -48,7 +48,7 @@ const securityHeaders = [
},
];

const moduleExports = {
const nextConfig = {
async headers() {
return [
{
Expand All @@ -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
Expand Down