Skip to content
4 changes: 2 additions & 2 deletions src/lib/sitemap-builder.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { readFileSync, statSync } from "node:fs";
import path from "node:path";
import type { MetadataRoute } from "next";
import { getBenchmarks } from "@/data/benchmarks";
import { getBenchmarksSafe } from "@/data/benchmarks";
import { getAllReports, getAllReportCategories } from "@/lib/reports/loader";
import { COMPARE_PAIRS } from "@/data/compare-pairs";
import { adHocPairs } from "@/lib/compare/adhoc-pairs";
Expand Down Expand Up @@ -209,7 +209,7 @@ async function buildStaticFallback(): Promise<MetadataRoute.Sitemap> {

async function buildFullSitemap(): Promise<MetadataRoute.Sitemap> {
const [benchmarks, alternatives, answers, providerSlugs] = await Promise.all([
safeLoad<Benchmark[]>("benchmarks", () => getBenchmarks(), []),
safeLoad<Benchmark[]>("benchmarks", () => getBenchmarksSafe(), []),
safeLoad<Awaited<ReturnType<typeof loadAllAlternatives>>>(
"alternatives",
() => loadAllAlternatives(),
Expand Down
Loading