From 14cc6f07742e42a1aa46da261d8e972b90ca7506 Mon Sep 17 00:00:00 2001 From: Nudesuppe42 Date: Tue, 16 Jan 2024 21:23:13 +0100 Subject: [PATCH] feat(seo): :mag: Map SEO --- next.config.js | 5 +++++ src/pages/map/index.tsx | 6 +++++- src/pages/map/teams.tsx | 2 +- src/pages/sitemap.xml.tsx | 6 ++++++ 4 files changed, 17 insertions(+), 2 deletions(-) diff --git a/next.config.js b/next.config.js index ed7ce928..ceee4afa 100644 --- a/next.config.js +++ b/next.config.js @@ -23,6 +23,11 @@ const nextConfig = { destination: '/sitemap.xml', permanent: false, }, + { + source: '/teams/map', + destination: '/map/teams', + permanent: true, + }, { source: '/buildteams/:id*', destination: '/teams/:id*', diff --git a/src/pages/map/index.tsx b/src/pages/map/index.tsx index dd75d9a5..4dc7d753 100644 --- a/src/pages/map/index.tsx +++ b/src/pages/map/index.tsx @@ -85,7 +85,11 @@ const MapPage: NextPage = () => { }, [query, map]); return ( - + actions} diff --git a/src/pages/map/teams.tsx b/src/pages/map/teams.tsx index 67500da8..5d773ec3 100644 --- a/src/pages/map/teams.tsx +++ b/src/pages/map/teams.tsx @@ -42,7 +42,7 @@ const MapPage: NextPage = ({ data }: any) => { ); return ( - +