30 lines
907 B
TypeScript
30 lines
907 B
TypeScript
import type { NextConfig } from "next";
|
|
const config: NextConfig = {
|
|
poweredByHeader: false,
|
|
outputFileTracingIncludes: { "/downloads": ["./public/tools/**/*.jar"] },
|
|
serverExternalPackages: ["pg"],
|
|
turbopack: { root: process.cwd() },
|
|
async headers() {
|
|
return [
|
|
{
|
|
source: "/:path*",
|
|
headers: [
|
|
{ key: "X-Content-Type-Options", value: "nosniff" },
|
|
{ key: "X-Frame-Options", value: "DENY" },
|
|
{ key: "Referrer-Policy", value: "same-origin" },
|
|
{
|
|
key: "Permissions-Policy",
|
|
value: "camera=(), microphone=(), geolocation=()",
|
|
},
|
|
{
|
|
key: "Content-Security-Policy",
|
|
value: "frame-ancestors 'none'; base-uri 'self'; object-src 'none'",
|
|
},
|
|
],
|
|
},
|
|
];
|
|
},
|
|
allowedDevOrigins: ["192.168.0.120", "minegeotest.12345em.ru"],
|
|
};
|
|
export default config;
|