Skip to content

Production-ready animations, transitions, backgrounds, and scenes for Remotion

feat: added changelog to sitemap

kapishdima49ed6260394c
diff --git a/app/sitemap.ts b/app/sitemap.ts
index 20a8f0ac..74c612e8 100644
--- a/app/sitemap.ts
+++ b/app/sitemap.ts
@@ -1,4 +1,5 @@
import type { MetadataRoute } from "next";
+import { changelog } from "@/.source/server";
import { source } from "@/source";
const SITE_URL = "https://remocn.dev";
@@ -34,5 +35,16 @@ export default function sitemap(): MetadataRoute.Sitemap {
priority: 0.7,
}));
- return [...staticRoutes, ...docRoutes];
+ const changelogRoutes: MetadataRoute.Sitemap = changelog.map((entry) => {
+ const slug = entry.info.path.replace(/\.mdx$/, "");
+
+ return {
+ url: `${SITE_URL}/changelog#${slug}`,
+ lastModified: entry.date,
+ changeFrequency: "monthly",
+ priority: 0.4,
+ };
+ });
+
+ return [...staticRoutes, ...docRoutes, ...changelogRoutes];
}