mirror of
https://github.com/willchen96/mike.git
synced 2026-06-08 20:25:13 +02:00
21 lines
519 B
TypeScript
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;
|