mike/frontend/next.config.ts
willchen96 4728fd194e chore(frontend): pin turbopack.root to silence multi-lockfile warning
The repo has lockfiles at the root (Playwright harness) and in
frontend/, so Next.js guesses the workspace root and warns on every
dev-server start. Pin it explicitly.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-07-25 23:59:06 +08:00

24 lines
568 B
TypeScript

import type { NextConfig } from "next";
const nextConfig: NextConfig = {
/* config options here */
reactCompiler: true,
turbopack: {
root: __dirname,
},
async rewrites() {
return [
{
source: "/sitemap.xml",
destination: "/api/sitemap/sitemap.xml",
},
{
source: "/sitemap_:slug.xml",
destination: "/api/sitemap/sitemap_:slug.xml",
},
];
},
skipTrailingSlashRedirect: true,
};
export default nextConfig;