import type { NextConfig } from "next"; const nextConfig: NextConfig = { async rewrites() { return { afterFiles: [ { source: "/cms/:path*", destination: "/:path*", }, ], }; }, }; export default nextConfig;