Fix Coming soon
This commit is contained in:
+7
-2
@@ -1,11 +1,16 @@
|
||||
import type { MetadataRoute } from "next";
|
||||
import { getLocalizedPath, siteConfig } from "@/lib/site";
|
||||
import { isComingSoonMode } from "@/lib/site";
|
||||
import type { Locale } from "@/lib/i18n";
|
||||
|
||||
const pages = ["", "/about", "/contact"] as const;
|
||||
const locales = ["ar", "en"] as const;
|
||||
const allPages = ["", "/about", "/contact"] as const;
|
||||
const allLocales = ["ar", "en"] as const;
|
||||
|
||||
export default function sitemap(): MetadataRoute.Sitemap {
|
||||
const lastModified = new Date();
|
||||
const comingSoon = isComingSoonMode();
|
||||
const pages: readonly (typeof allPages)[number][] = comingSoon ? [] : allPages;
|
||||
const locales: readonly Locale[] = comingSoon ? [] : allLocales;
|
||||
|
||||
return [
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user