Skip to content

Commit 8caae05

Browse files
committed
fix(sitemap): stop prerender race; drop the_cartographer achievement
1 parent 243d774 commit 8caae05

2 files changed

Lines changed: 6 additions & 14 deletions

File tree

src/config/achievements.jsx

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -655,13 +655,6 @@ export const ACHIEVEMENTS = [
655655
icon: <PhoneIcon size={32} weight="duotone" />,
656656
category: 'Secret',
657657
},
658-
{
659-
id: 'the_cartographer',
660-
title: 'The Cartographer',
661-
description: 'Map the territory.',
662-
icon: <CompassIcon size={32} weight="duotone" />,
663-
category: 'Secret',
664-
},
665658
{
666659
id: 'the_emergency',
667660
title: 'The Emergency',

src/pages/SitemapPage.jsx

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,16 @@
11
import React, { useEffect } from 'react';
2-
import { useAchievements } from '../context/AchievementContext';
32

43
const SitemapPage = () => {
5-
const { unlockAchievement } = useAchievements();
6-
74
useEffect(() => {
8-
unlockAchievement('the_cartographer');
9-
window.location.href = '/sitemap.xml';
10-
}, [unlockAchievement]);
5+
window.location.replace('/sitemap.xml');
6+
}, []);
117

128
return (
139
<div className="p-10 text-center text-white text-xl">
14-
<h1>Redirecting to Sitemap...</h1>
10+
<meta httpEquiv="refresh" content="0; url=/sitemap.xml" />
11+
<h1>
12+
Redirecting to <a href="/sitemap.xml" className="underline">sitemap.xml</a>...
13+
</h1>
1514
</div>
1615
);
1716
};

0 commit comments

Comments
 (0)