import type { NextConfig } from "next"; import { createKriNextConfig } from "@kri/common/config"; const nextConfig = createKriNextConfig({ async headers() { return [ { source: "/api/kric-internal/:path*", headers: [ { key: "Access-Control-Allow-Origin", value: "*" }, { key: "Access-Control-Allow-Methods", value: "GET, POST, OPTIONS" }, { key: "Access-Control-Allow-Headers", value: "Content-Type, X-API-Key", }, { key: "Access-Control-Expose-Headers", value: "Content-Disposition", }, ], }, ]; }, }) satisfies NextConfig; export default nextConfig;