Files
Webserver/next.config.ts

34 lines
906 B
TypeScript
Raw Permalink Normal View History

2026-02-06 14:10:59 -05:00
import type { NextConfig } from "next";
const nextConfig: NextConfig = {
2026-02-07 20:17:46 -05:00
output: "standalone",
serverExternalPackages: ['better-sqlite3'],
2026-02-07 20:17:46 -05:00
headers: async () => {
return [
{
source: '/:path*',
headers: [
{
key: 'X-Frame-Options',
value: 'DENY',
},
{
key: 'Content-Security-Policy',
2026-02-08 23:18:21 -05:00
value: "default-src 'self'; script-src 'self' 'unsafe-inline'; style-src 'self' 'unsafe-inline'; img-src 'self' data:; font-src 'self' data:; connect-src 'self'; frame-ancestors 'none'; form-action 'self'; base-uri 'self';",
2026-02-07 20:17:46 -05:00
},
{
key: 'X-Content-Type-Options',
value: 'nosniff',
},
{
key: 'Referrer-Policy',
value: 'strict-origin-when-cross-origin',
},
],
},
];
},
2026-02-06 14:10:59 -05:00
};
export default nextConfig;