import type { NextConfig } from "next"; const nextConfig: NextConfig = { images: { remotePatterns: [ { protocol: "https", hostname: "images.unsplash.com" } ] }, async headers() { const noStoreHeaders = [ { key: "Cache-Control", value: "no-store, no-cache, must-revalidate, proxy-revalidate" }, { key: "Pragma", value: "no-cache" }, { key: "Expires", value: "0" } ]; return [ { source: "/", headers: noStoreHeaders }, { source: "/chat", headers: noStoreHeaders }, { source: "/library", headers: noStoreHeaders }, { source: "/agents", headers: noStoreHeaders }, { source: "/agents/:path*", headers: noStoreHeaders }, { source: "/reader/:path*", headers: noStoreHeaders }, { source: "/api/:path*", headers: noStoreHeaders } ]; } }; export default nextConfig;