diff --git a/apps/fronted/public/sitemap.xml b/apps/fronted/public/sitemap.xml deleted file mode 100644 index 55364c6..0000000 --- a/apps/fronted/public/sitemap.xml +++ /dev/null @@ -1,18 +0,0 @@ - - - - https://magicv.art/en - - - daily - 1.0 - - - https://magicv.art/zh - - - daily - 1.0 - - diff --git a/apps/fronted/src/app/sitemap.ts b/apps/fronted/src/app/sitemap.ts new file mode 100644 index 0000000..fbc8d2e --- /dev/null +++ b/apps/fronted/src/app/sitemap.ts @@ -0,0 +1,16 @@ +import type { MetadataRoute } from "next"; + +export default function sitemap(): MetadataRoute.Sitemap { + return [ + { + url: "https://magicv.art", + lastModified: new Date(), + alternates: { + languages: { + zh: "https://magicv.art/zh", + en: "https://magicv.art/en", + }, + }, + }, + ]; +}