mirror of
https://github.com/Dokploy/website
synced 2025-06-26 18:16:01 +00:00
19 lines
559 B
TypeScript
19 lines
559 B
TypeScript
import { url } from "@/utils/metadata";
|
|
import type { MetadataRoute } from "next";
|
|
import { getPages } from "./source.config";
|
|
|
|
export default async function sitemap(): Promise<MetadataRoute.Sitemap> {
|
|
return [
|
|
...getPages().map<MetadataRoute.Sitemap[number]>((page) => {
|
|
return {
|
|
url: url(`/en${page.url}`),
|
|
lastModified: page.data.exports.lastModified
|
|
? new Date(page.data.exports.lastModified)
|
|
: undefined,
|
|
changeFrequency: "weekly",
|
|
priority: page.url === "/docs/core/get-started/introduction" ? 1 : 0.8,
|
|
};
|
|
}),
|
|
];
|
|
}
|