Files
brain/web/next.config.js
T
Andrew S Erwin b9721ff13f
release gate / check (push) Failing after 8m35s
initial commit on Federted servers
2026-10-19 16:23:55 -05:00

26 lines
938 B
JavaScript

/** @type {import('next').NextConfig} */
module.exports = {
output: 'standalone',
outputFileTracingRoot: __dirname,
poweredByHeader: false,
images: { unoptimized: true },
allowedDevOrigins: ['127.0.0.1'],
async headers() {
// The UI renders user-supplied URLs and remote ogImage/favicon values.
// The Content-Security-Policy (nonce-based, review CR-10) is emitted per
// response by web/middleware.ts so Next's inline bootstrap scripts carry
// the nonce; these headers are the static non-CSP subset.
return [
{
source: '/:path*',
headers: [
{ key: 'X-Content-Type-Options', value: 'nosniff' },
{ key: 'X-Frame-Options', value: 'DENY' },
{ key: 'Referrer-Policy', value: 'strict-origin-when-cross-origin' },
{ key: 'Permissions-Policy', value: 'camera=(), microphone=(), geolocation=(), interest-cohort=()' },
],
},
]
},
}