import type { NextConfig } from "next"; const ENGINE = process.env.QC26_ENGINE_URL || "http://127.0.0.1:8201"; const nextConfig: NextConfig = { reactStrictMode: true, poweredByHeader: false, images: { formats: ["image/avif", "image/webp"] }, async rewrites() { return [ { source: "/api/:path*", destination: `${ENGINE}/api/:path*` }, { source: "/healthz", destination: `${ENGINE}/healthz` }, ]; }, async headers() { return [ { source: "/parties/:path*", headers: [{ key: "Cache-Control", value: "public, max-age=604800, immutable" }] }, ]; }, }; export default nextConfig;