Files
Jyotisha/frontend/next.config.ts
T
Jesse_Chen dc6598d7e4 fix(web): keep the settings dialog one size and move billing into it (BUG-554)
The four account panes now share a fixed frame, chart profiles open as list then detail, and membership lives in the homepage dialog instead of a separate page.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-09-06 18:29:51 +08:00

52 lines
1.3 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/**/*",
],
},
async redirects() {
return [
{ source: "/membership", destination: "/?settings=billing&source=legacy", permanent: false },
{ source: "/membership/orders", destination: "/?settings=billing&tab=orders", permanent: false },
];
},
};
export default nextConfig;