From 37e6a8ec3394390cbbabd4e49523bb84ea849a0f Mon Sep 17 00:00:00 2001 From: Ben Fornefeld Date: Fri, 25 Apr 2025 20:38:53 +0200 Subject: [PATCH 1/2] add: nextjs redirects for /ai-agents routes --- next.config.mjs | 5 +++++ src/configs/seo.ts | 4 +--- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/next.config.mjs b/next.config.mjs index 11a5b7fb..a92ef09e 100644 --- a/next.config.mjs +++ b/next.config.mjs @@ -60,6 +60,11 @@ const config = { destination: '/sign-up', permanent: true, }, + { + source: '/ai-agents/:path*', + destination: '/', + permanent: true + } ], skipTrailingSlashRedirect: true, } diff --git a/src/configs/seo.ts b/src/configs/seo.ts index 63924a91..aa897c46 100644 --- a/src/configs/seo.ts +++ b/src/configs/seo.ts @@ -12,6 +12,4 @@ * - '/ai-agents/{foo,bar}' - Matches /ai-agents/foo or /ai-agents/bar * - '/ai-agents/!(foo|bar)' - Matches anything except /ai-agents/foo or /ai-agents/bar */ -export const DEPRECATED_PATH_PATTERNS = [ - '/ai-agents/**', // Match any path under /ai-agents -] +export const DEPRECATED_PATH_PATTERNS = [] From 49bb68e77d30372776286a5a81da390ee9c0020c Mon Sep 17 00:00:00 2001 From: Ben Fornefeld Date: Fri, 25 Apr 2025 20:41:19 +0200 Subject: [PATCH 2/2] chore: comment redirects --- next.config.mjs | 1 + 1 file changed, 1 insertion(+) diff --git a/next.config.mjs b/next.config.mjs index a92ef09e..9bffc2b6 100644 --- a/next.config.mjs +++ b/next.config.mjs @@ -60,6 +60,7 @@ const config = { destination: '/sign-up', permanent: true, }, + // SEO Redirects { source: '/ai-agents/:path*', destination: '/',