- extraction-client.ts: lazy singleton (SSR crash fix) [A1] - blob-client.ts: lazy singleton + remove dead re-export [A1] - notes-client.ts: add "use client" directive [A6] - next.config.ts: add output: "standalone" [A2] - Delete mock-data.ts and review-data.ts (dead code) [D3, D4]
37 lines
667 B
TypeScript
37 lines
667 B
TypeScript
import path from "node:path";
|
|
import type { NextConfig } from "next";
|
|
|
|
const securityHeaders = [
|
|
{
|
|
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=()",
|
|
},
|
|
];
|
|
|
|
const nextConfig: NextConfig = {
|
|
output: "standalone",
|
|
outputFileTracingRoot: path.join(process.cwd(), ".."),
|
|
async headers() {
|
|
return [
|
|
{
|
|
source: "/(.*)",
|
|
headers: securityHeaders,
|
|
},
|
|
];
|
|
},
|
|
};
|
|
|
|
export default nextConfig;
|