learning_ai_common_plat/dashboards/tracker-web/next.config.ts
saravanakumardb1 7210464019 fix(tracker-web): replace broken webpack alias with transpilePackages — build now succeeds
fix(config): mock Azure SDK in keyvault tests — eliminates timeouts, 26/26 pass in <1s
2026-02-28 12:11:37 -08:00

42 lines
752 B
TypeScript

import type { NextConfig } from 'next';
const securityHeaders = [
{
key: 'X-Frame-Options',
value: 'DENY',
},
{
key: 'X-Content-Type-Options',
value: 'nosniff',
},
{
key: 'X-XSS-Protection',
value: '1; mode=block',
},
{
key: 'Referrer-Policy',
value: 'strict-origin-when-cross-origin',
},
];
const nextConfig: NextConfig = {
...(process.env.VERCEL ? {} : { output: 'standalone' }),
transpilePackages: [
'@bytelyst/api-client',
'@bytelyst/errors',
'@bytelyst/config',
'@bytelyst/react-auth',
'@bytelyst/telemetry-client',
],
async headers() {
return [
{
source: '/(.*)',
headers: securityHeaders,
},
];
},
};
export default nextConfig;