diff --git a/next.config.js b/next.config.js index 0fb9a9703..10261c984 100644 --- a/next.config.js +++ b/next.config.js @@ -15,6 +15,15 @@ const nextConfig = { }, ], }, + { + source: "/news/:path*", + headers: [ + { + key: "x-forwarded-host", + value: "opensauced.pizza" + } + ], + }, ] }, async rewrites() { @@ -30,7 +39,15 @@ const nextConfig = { { source: '/docs/', destination: 'https://docs.opensauced.pizza/', - } + }, + { + source: "/news/:path*/", + destination: "https://news.opensauced.pizza/blog/:path*/", + }, + { + source: "/news/", + destination: "https://news.opensauced.pizza", + }, ]; }, skipTrailingSlashRedirect: true,