diff --git a/next.config.mjs b/next.config.mjs index 453185f..292d69c 100644 --- a/next.config.mjs +++ b/next.config.mjs @@ -7,6 +7,28 @@ const nextConfig = { mdxRs: true, }, turbopack: {}, + // Cutover: Research consolidated into the marketing app at + // recoupable.com/research. These 301s preserve SEO authority + inbound links + // from the old research.recoupable.com subdomain. See docs/research-cutover.md. + async redirects() { + return [ + { + source: "/blog/:slug", + destination: "https://recoupable.com/research/:slug", + permanent: true, + }, + { + source: "/blog", + destination: "https://recoupable.com/research", + permanent: true, + }, + { + source: "/", + destination: "https://recoupable.com/research", + permanent: true, + }, + ]; + }, }; export default withContentlayer(nextConfig);