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.

updated sitemap

Steven Tey9f25a8b8f9ad
diff --git a/app/sitemap.ts b/app/sitemap.ts
index c61c8a46eb..14dd48d8e3 100644
--- a/app/sitemap.ts
+++ b/app/sitemap.ts
@@ -1,5 +1,5 @@
import prisma from "@/lib/prisma";
-import { allChangelogPosts } from "contentlayer/generated";
+import { allChangelogPosts, allLegalPosts } from "contentlayer/generated";
export default async function Sitemap() {
const domain = "dub.sh";
@@ -26,6 +26,10 @@ export default async function Sitemap() {
},
...(domain === "dub.sh"
? [
+ {
+ url: `https://${domain}/pricing`,
+ lastModified: new Date(),
+ },
{
url: `https://${domain}/changelog`,
lastModified: new Date(),
@@ -38,6 +42,10 @@ export default async function Sitemap() {
url: `https://${domain}/metatags`,
lastModified: new Date(),
},
+ ...allLegalPosts.map((post) => ({
+ url: `https://${domain}/${post.slug}`,
+ lastModified: new Date(),
+ })),
]
: []),
...links.map(({ key }) => ({