import path from "node:path"; import type { NextConfig } from "next"; const repositoryRoot = path.join(process.cwd(), ".."); const nextConfig: NextConfig = { deploymentId: process.env.NEXT_DEPLOYMENT_ID, async headers() { return [ { source: "/", headers: [{ key: "Cache-Control", value: "private, no-store, must-revalidate" }], }, { source: "/login", headers: [{ key: "Cache-Control", value: "private, no-store, must-revalidate" }], }, ]; }, devIndicators: false, experimental: { authInterrupts: true, optimizePackageImports: [ "@ant-design/icons", "@refinedev/antd", "@refinedev/core", "antd", "date-fns", "lucide-react", ], }, output: "standalone", turbopack: { root: repositoryRoot }, outputFileTracingRoot: repositoryRoot, outputFileTracingIncludes: { "/api/consult": [ "../SKILL.md", "../references/**/*", "../scripts/**/*", "../assets/**/*", ], }, }; export default nextConfig;