mike/frontend/next.config.ts
2026-04-29 19:49:06 +02:00

21 lines
519 B
TypeScript

import type { NextConfig } from "next";
const nextConfig: NextConfig = {
/* config options here */
reactCompiler: true,
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;