Papermark is the open-source DocSend alternative and secure data rooms with built-in analytics and custom domains.
chore: update sitemap
Marc Seitzfb7994946592
diff --git a/app/sitemap.ts b/app/sitemap.tsindex 1501a135..51392478 100644--- a/app/sitemap.ts+++ b/app/sitemap.ts@@ -1,38 +1,28 @@-import { getPostsRemote as getPosts } from "@/lib/content/blog";+import { getPosts, getAlternatives, getPages } from "@/lib/content";import { MetadataRoute } from "next";export default async function sitemap(): Promise<MetadataRoute.Sitemap> {const posts = await getPosts();- const blogs = posts.map((post) => ({+ const solutions = await getPages();+ const alternatives = await getAlternatives();+ const blogLinks = posts.map((post) => ({url: `https://www.papermark.io/blog/${post?.data.slug}`,lastModified: new Date().toISOString().split("T")[0],}));+ const solutionLinks = solutions.map((solution) => ({+ url: `https://www.papermark.io/solutions/${solution?.slug}`,+ lastModified: new Date().toISOString().split("T")[0],+ }));+ const alternativeLinks = alternatives.map((alternative) => ({+ url: `https://www.papermark.io/alternatives/${alternative?.slug}`,+ lastModified: new Date().toISOString().split("T")[0],+ }));return [{url: "https://www.papermark.io",lastModified: new Date().toISOString().split("T")[0],},- {- url: "https://www.papermark.io/alternatives/docsend",- lastModified: new Date().toISOString().split("T")[0],- },- {- url: "https://www.papermark.io/alternatives/brieflink",- lastModified: new Date().toISOString().split("T")[0],- },- {- url: "https://www.papermark.io/alternatives/pandadoc",- lastModified: new Date().toISOString().split("T")[0],- },- {- url: "https://www.papermark.io/alternatives/google-drive",- lastModified: new Date().toISOString().split("T")[0],- },- {- url: "https://www.papermark.io/alternatives/pitch",- lastModified: new Date().toISOString().split("T")[0],- },{url: "https://www.papermark.io/privacy",lastModified: new Date().toISOString().split("T")[0],@@ -57,6 +47,12 @@ export default async function sitemap(): Promise<MetadataRoute.Sitemap> {url: "https://www.papermark.io/investors",lastModified: new Date().toISOString().split("T")[0],},- ...blogs,+ {+ url: "https://www.papermark.io/blog",+ lastModified: new Date().toISOString().split("T")[0],+ },+ ...blogLinks,+ ...solutionLinks,+ ...alternativeLinks,];}diff --git a/lib/content/index.ts b/lib/content/index.tsnew file mode 100644index 00000000..9d68c6cc--- /dev/null+++ b/lib/content/index.ts@@ -0,0 +1,3 @@+export { getAlternatives } from "./alternative";+export { getPostsRemote as getPosts } from "./blog";+export { getPages } from "./page";