Point google to /federation page (#6018)

This commit is contained in:
Kamil Kisiela 2024-11-21 12:38:42 +01:00 committed by GitHub
parent 1878b08bc8
commit c86368204f
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 7 additions and 2 deletions

View file

@ -1,3 +1,8 @@
---
# Let's point Google to the /federation page page instead
canonical: /federation
---
import NextImage from 'next/image'
import { Callout, Cards, FileTree, Steps, Tabs } from '@theguild/components'
import cdnAccessTokenSettings from '../../../../public/docs/pages/get-started/apollo-federation/cdn-access-token-settings.png'

View file

@ -79,9 +79,9 @@ export default defineConfig({
const isGatewayDocsPage = pagePath.route.includes('/docs/gateway');
const suffix = isGatewayDocsPage ? 'Hive Gateway' : 'Hive';
const title = `${pageTitle} - ${suffix}`;
const { description = `${siteName}: ${siteDescription}` } = frontMatter;
const { description = `${siteName}: ${siteDescription}`, canonical } = frontMatter;
const canonicalUrl = ensureAbsolute(pagePath.route);
const canonicalUrl = ensureAbsolute(canonical ?? pagePath.route);
return (
<>