Skip to content

Commit 87bdc9a

Browse files
authored
Move header config to nextConfig
1 parent 51a5608 commit 87bdc9a

File tree

1 file changed

+10
-11
lines changed

1 file changed

+10
-11
lines changed

apps/frontend/next.config.js

Lines changed: 10 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,16 @@ const nextConfig = {
66
experimental: {
77
proxyTimeout: 90_000,
88
},
9+
// Document-Policy header for browser profiling
10+
async headers() {
11+
return [{
12+
source: "/:path*",
13+
headers: [{
14+
key: "Document-Policy",
15+
value: "js-profiling",
16+
}, ],
17+
}, ];
18+
},
919
reactStrictMode: false,
1020
transpilePackages: ['crypto-hash'],
1121
// Enable production sourcemaps for Sentry
@@ -105,15 +115,4 @@ export default withSentryConfig(nextConfig, {
105115
// Don't fail the build if Sentry upload fails in monorepo context
106116
return;
107117
},
108-
109-
// Document-Policy header for browser profiling
110-
async headers() {
111-
return [{
112-
source: "/:path*",
113-
headers: [{
114-
key: "Document-Policy",
115-
value: "js-profiling",
116-
}, ],
117-
}, ];
118-
},
119118
});

0 commit comments

Comments
 (0)