From cfdcbc5b75e3f5402188824a7daa40c8e1b16c7e Mon Sep 17 00:00:00 2001 From: Leah Bush Date: Wed, 15 Jan 2025 13:59:53 -0600 Subject: [PATCH] simulate docs error --- src/lib/sitemap/docs-content-fields.ts | 1 + src/lib/sitemap/tutorials-content-fields.ts | 1 - 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/sitemap/docs-content-fields.ts b/src/lib/sitemap/docs-content-fields.ts index dc759a1688..1cefe53519 100644 --- a/src/lib/sitemap/docs-content-fields.ts +++ b/src/lib/sitemap/docs-content-fields.ts @@ -6,6 +6,7 @@ import { makeSitemapField } from './helpers' export async function allDocsFields(config: typeof __config) { + throw new Error('docs error') // If there are docs that have been migrated to the unified docs repo, get the paths for those docs // and merge them with the paths for the docs that haven't been migrated from the content API if ( diff --git a/src/lib/sitemap/tutorials-content-fields.ts b/src/lib/sitemap/tutorials-content-fields.ts index 079314a206..4819a52630 100644 --- a/src/lib/sitemap/tutorials-content-fields.ts +++ b/src/lib/sitemap/tutorials-content-fields.ts @@ -28,7 +28,6 @@ async function getCollectionPaths() { } export async function allTutorialsFields(config: typeof __config) { - throw new Error('tutorials error') const landingSlugs = getTutorialLandingPaths() const collectionSlugs = await getCollectionPaths() const tutorialSlugs = Object.values(tutorialMap)