Files
Jyotisha/frontend/next.config.ts
T
Jesse_Chen 50e1a4aca5 fix(web): reload stale clients instead of spinning after a release
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>
2026-08-21 10:29:43 +08:00

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;