50e1a4aca5
Homepage bootstrap never escaped the loading shell when a new web image changed chunk hashes. Stamp deploymentId, stop caching chat HTML, and hard-reload failed chunk loads once. Co-authored-by: Cursor <cursoragent@cursor.com>
46 lines
1.0 KiB
TypeScript
46 lines
1.0 KiB
TypeScript
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;
|