- Add Gerard Doustraat casus images - Add error/not-found pages and SVG favicon - Improve HandleidingDiagrams, LayoutSwitcher, ParameterEditor - Enhance RebelExcelLayout with service level curves - Update model-data, simulation state, and content Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
30 lines
856 B
TypeScript
30 lines
856 B
TypeScript
import type { NextConfig } from "next";
|
|
|
|
const nextConfig: NextConfig = {
|
|
poweredByHeader: false,
|
|
images: {
|
|
formats: ['image/avif', 'image/webp'],
|
|
},
|
|
async headers() {
|
|
return [
|
|
{
|
|
source: '/(.*)',
|
|
headers: [
|
|
{ key: 'X-Frame-Options', value: 'DENY' },
|
|
{ key: 'X-Content-Type-Options', value: 'nosniff' },
|
|
{ key: 'Referrer-Policy', value: 'strict-origin-when-cross-origin' },
|
|
{
|
|
key: 'Permissions-Policy',
|
|
value: 'camera=(), microphone=(), geolocation=()',
|
|
},
|
|
// CSP intentionally omitted -- Next.js requires nonce-based CSP via
|
|
// middleware for proper inline script/style support. Add middleware.ts
|
|
// with nonce generation if a strict CSP is required.
|
|
],
|
|
},
|
|
];
|
|
},
|
|
};
|
|
|
|
export default nextConfig;
|