From 8c95f5cb9d1c6b6134b7624d9490808e0bbb51ae Mon Sep 17 00:00:00 2001 From: Philip Cheung Date: Sun, 1 Dec 2024 21:36:40 +0800 Subject: [PATCH] add sitemap by code --- app/sitemap.ts | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 app/sitemap.ts diff --git a/app/sitemap.ts b/app/sitemap.ts new file mode 100644 index 0000000..c132f3b --- /dev/null +++ b/app/sitemap.ts @@ -0,0 +1,24 @@ +import type { MetadataRoute } from 'next' + +export default function sitemap(): MetadataRoute.Sitemap { + return [ + { + url: 'https://oneandallmusic.net/', + lastModified: new Date(), + changeFrequency: 'yearly', + priority: 1, + }, + { + url: 'https://oneandallmusic.net/aboutus', + lastModified: new Date(), + changeFrequency: 'monthly', + priority: 0.8, + }, + { + url: 'https://oneandallmusic.net/electronicorgan', + lastModified: new Date(), + changeFrequency: 'weekly', + priority: 0.8, + }, + ] +} \ No newline at end of file