mirror of
https://github.com/willchen96/mike.git
synced 2026-07-26 23:51:08 +02:00
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>
24 lines
568 B
TypeScript
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;
|