Skip to content

Commit a99b700

Browse files
authored
exclude platform-redirect page from search engine index, improve SEO (#11862)
closes #11740
1 parent 338ab56 commit a99b700

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

app/platform-redirect/page.tsx

+8
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
import {Metadata} from 'next';
12
import {redirect} from 'next/navigation';
23

34
import {Alert} from 'sentry-docs/components/alert';
@@ -7,6 +8,13 @@ import {SmartLink} from 'sentry-docs/components/smartLink';
78
import {extractPlatforms, getDocsRootNode, nodeForPath} from 'sentry-docs/docTree';
89
import {setServerContext} from 'sentry-docs/serverContext';
910

11+
export const metadata: Metadata = {
12+
robots: 'noindex',
13+
title: 'Platform Specific Content',
14+
description:
15+
'The page you are looking for is customized for each platform. Select your platform below and we’ll direct you to the most specific documentation on it.',
16+
};
17+
1018
export default async function Page({
1119
searchParams: {next = '', platform},
1220
}: {

0 commit comments

Comments
 (0)