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.

Update sitemap.ts

Steven Tey19dbd2afdaff
diff --git a/app/sitemap.ts b/app/sitemap.ts
index a696821283..c61c8a46eb 100644
--- a/app/sitemap.ts
+++ b/app/sitemap.ts
@@ -1,15 +1,12 @@
-import { headers } from "next/headers";
-import { getDomain } from "@/lib/utils";
import prisma from "@/lib/prisma";
import { allChangelogPosts } from "contentlayer/generated";
export default async function Sitemap() {
- const domain = getDomain(headers());
+ const domain = "dub.sh";
- // Get top 100 links (sorted by clicks in descending order)
const links = await prisma.link.findMany({
where: {
- domain: domain,
+ domain,
publicStats: true,
},
select: {