We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7741792 commit 367b81cCopy full SHA for 367b81c
apps/docs/src/app/sitemap.ts
@@ -27,7 +27,18 @@ export default async function sitemap(): Promise<MetadataRoute.Sitemap> {
27
},
28
29
...(await Promise.all(
30
- [docs.getPages(), learn.getPages(), blog.getPages()]
+ [
31
+ docs
32
+ .getPages()
33
+ // We filter out the pages that start with /docs/13 and /docs/14
34
+ .filter((page) =>
35
+ ['/docs/13', '/docs/14'].every(
36
+ (prefix) => !page.url.startsWith(prefix),
37
+ ),
38
39
+ learn.getPages(),
40
+ blog.getPages(),
41
+ ]
42
.flat()
43
.map(async (page) => {
44
const { 'translation-updated-at': lastModified } = page.data;
0 commit comments