Skip to content

armgit / dub

Public Imported from GitHub
0

The modern link attribution platform. Loved by world-class engineering teams at Twilio, Zillow, Jobber, Vercel, Raycast, and more.

fix: typed sitemap function

Tom Heatonff3a5c3a1181
diff --git a/app/sitemap.ts b/app/sitemap.ts
index 079e5c911f..a2a7683941 100644
--- a/app/sitemap.ts
+++ b/app/sitemap.ts
@@ -1,3 +1,4 @@
+import { MetadataRoute } from "next";
import prisma from "#/lib/prisma";
import { headers } from "next/headers";
import {
@@ -9,7 +10,7 @@ import {
import { isHomeHostname, allTools } from "#/lib/constants";
import { BLOG_CATEGORIES, HELP_CATEGORIES } from "#/lib/constants/content";
-export default async function Sitemap() {
+export default async function sitemap(): Promise<MetadataRoute.Sitemap> {
const headersList = headers();
let domain = headersList.get("host") as string;
if (isHomeHostname(domain)) domain = "dub.co";