diff --git a/src/utils/seo.ts b/src/utils/seo.ts index 31b8daef..017649dd 100644 --- a/src/utils/seo.ts +++ b/src/utils/seo.ts @@ -1,6 +1,4 @@ import { env } from '~/utils/env' -import { findLibrary } from '~/libraries' - const DEFAULT_SITE_URL = 'https://tanstack.com' const NON_INDEXABLE_PATH_PREFIXES = ['/account', '/admin', '/login'] as const @@ -30,17 +28,6 @@ export function getCanonicalPath(path: string) { return null } - const pathSegments = normalizedPath.split('/').filter(Boolean) - - if (pathSegments.length >= 2) { - const [libraryId, version, ...rest] = pathSegments - const library = findLibrary(libraryId) - - if (library && version !== 'latest') { - return normalizePath(`/${library.id}/latest/${rest.join('/')}`) - } - } - return normalizedPath } diff --git a/src/utils/sitemap.ts b/src/utils/sitemap.ts index 6fcd145e..c769e117 100644 --- a/src/utils/sitemap.ts +++ b/src/utils/sitemap.ts @@ -175,8 +175,6 @@ export function generateRobotsTxt(origin: string) { return [ 'User-agent: *', 'Allow: /', - 'Disallow: /api/', - 'Disallow: /oauth/', '', `Sitemap: ${origin}/sitemap.xml`, ].join('\n')