Skip to content

Commit

Permalink
feat(seo): 🔍 Map SEO
Browse files Browse the repository at this point in the history
  • Loading branch information
Nudelsuppe42 committed Jan 16, 2024
1 parent 91bf1cb commit 14cc6f0
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 2 deletions.
5 changes: 5 additions & 0 deletions next.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -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*',
Expand Down
6 changes: 5 additions & 1 deletion src/pages/map/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,11 @@ const MapPage: NextPage = () => {
}, [query, map]);

return (
<Page fullWidth title="Map">
<Page
fullWidth
title="Map"
description="Explore the progress that has been made in the BuildTheEarth Project."
>
<ClaimDrawer open={opened} setOpen={setOpened} id={selected} map={map} t={t} />
<Spotlight
filter={(query, actions) => actions}
Expand Down
2 changes: 1 addition & 1 deletion src/pages/map/teams.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ const MapPage: NextPage = ({ data }: any) => {
);

return (
<Page fullWidth title="Map">
<Page fullWidth title="Map" description="Find the Buildteam building a specific country here.">
<ClaimDrawer open={opened} setOpen={setOpened} id={selected} map={map} t={t} />

<MapContextMenu
Expand Down
6 changes: 6 additions & 0 deletions src/pages/sitemap.xml.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,12 @@ export async function getServerSideProps({ res }: any) {
changeFrequency: 'monthly',
priority: 0.9,
},
{
loc: '/map/teams',
lastModified: new Date(),
changeFrequency: 'monthly',
priority: 0.9,
},
{
loc: '/gallery',
lastModified: new Date(),
Expand Down

0 comments on commit 14cc6f0

Please sign in to comment.