Import project configuration: vault/next.config.ts

Import the existing local project snapshot. This commit organizes existing files; it does not represent newly developed functionality.
This commit is contained in:
arsam
2026-09-18 23:16:37 +03:30
parent 558ad20715
commit 82b5374688
+41
View File
@@ -0,0 +1,41 @@
import type { NextConfig } from "next";
const nextConfig: NextConfig = {
async headers() {
const contentSecurityPolicy = [
"default-src 'self'",
"script-src 'self' 'unsafe-eval' 'unsafe-inline'",
"style-src 'self' 'unsafe-inline'",
"img-src 'self' data: blob:",
"font-src 'self'",
"connect-src 'self'",
"media-src 'self'",
"object-src 'none'",
"base-uri 'self'",
"form-action 'self'",
"frame-ancestors 'none'",
].join("; ");
return [
{
source: "/:path*",
headers: [
{
key: "Content-Security-Policy",
value: contentSecurityPolicy,
},
{
key: "Referrer-Policy",
value: "strict-origin-when-cross-origin",
},
{
key: "X-Content-Type-Options",
value: "nosniff",
},
],
},
];
},
};
export default nextConfig;