udpate for coming soon

This commit is contained in:
diyaa
2026-03-13 03:45:13 +01:00
parent 243a182d33
commit cdf83cd466
32 changed files with 907 additions and 143 deletions
+26
View File
@@ -0,0 +1,26 @@
import type { MetadataRoute } from "next";
import { getLocalizedPath, siteConfig } from "@/lib/site";
const pages = ["", "/about", "/contact"] as const;
const locales = ["ar", "en"] as const;
export default function sitemap(): MetadataRoute.Sitemap {
const lastModified = new Date();
return [
{
url: siteConfig.siteUrl,
lastModified,
changeFrequency: "weekly",
priority: 0.8,
},
...pages.flatMap((page) =>
locales.map((locale) => ({
url: `${siteConfig.siteUrl}${getLocalizedPath(page, locale)}`,
lastModified,
changeFrequency: "weekly" as const,
priority: page === "" ? 1 : 0.7,
})),
),
];
}