Added JavaScript Profiling with Sentry

This commit is contained in:
Ahmad 2024-12-21 17:38:50 -05:00
parent d03340dd5a
commit a3c568d5a1
No known key found for this signature in database
GPG key ID: 8FD8A93530D182BF
2 changed files with 26 additions and 2 deletions

View file

@ -23,6 +23,19 @@ const nextConfig: NextConfig = {
},
],
},
async headers() {
return [
{
source: '/:path*',
headers: [
{
key: 'Document-Policy',
value: 'js-profiling',
},
],
},
];
},
pageExtensions: ['ts', 'tsx', 'js', 'jsx', 'md', 'mdx'],
compress: true,
serverMiddleware: [compression()],