One-click character swap for videos: an open-source, local Higgsfield Genjutsu alternative built on ComfyUI and MiniMax H3, with FLUX.3 Klein relighting.
import type { NextConfig } from "next";
// Next reads this config before it starts telemetry, so this turns telemetry off for every npm script on any OS
// (a `NEXT_TELEMETRY_DISABLED=1 next ...` script prefix would fail in Windows cmd).
process.env.NEXT_TELEMETRY_DISABLED ??= "1";
// No full CSP: Next's inline scripts and the page's blob: video previews would need one written around them.
const securityHeaders = [
{ key: "X-Frame-Options", value: "DENY" },
{ key: "Content-Security-Policy", value: "frame-ancestors 'none'" },
{ key: "X-Content-Type-Options", value: "nosniff" },
{ key: "Referrer-Policy", value: "same-origin" },
];
const nextConfig: NextConfig = {
async headers() {
return [{ source: "/:path*", headers: securityHeaders }];
},
};
export default nextConfig;