diff --git a/public/sitemap.xml b/public/sitemap.xml deleted file mode 100644 index f1dcd09..0000000 --- a/public/sitemap.xml +++ /dev/null @@ -1,18 +0,0 @@ - - - - https://cheatingchelsea.com/ - 2025-07-29 - 1.00 - - - https://cheatingchelsea.com/long-story - 2025-07-29 - 0.80 - - - https://cheatingchelsea.com/gallery - 2025-07-29 - 0.80 - - diff --git a/src/app/robots.ts b/src/app/robots.ts new file mode 100644 index 0000000..6e08cf5 --- /dev/null +++ b/src/app/robots.ts @@ -0,0 +1,12 @@ +import type { MetadataRoute } from 'next'; + +export default function robots(): MetadataRoute.Robots { + const baseUrl = 'https://cheatingchelsea.com'; + return { + rules: { + userAgent: '*', + allow: '/', + }, + sitemap: `${baseUrl}/sitemap.xml`, + }; +} diff --git a/src/app/sitemap.ts b/src/app/sitemap.ts new file mode 100644 index 0000000..8699df5 --- /dev/null +++ b/src/app/sitemap.ts @@ -0,0 +1,32 @@ +import type { MetadataRoute } from 'next'; + +export default function sitemap(): MetadataRoute.Sitemap { + const baseUrl = 'https://cheatingchelsea.com'; + + return [ + { + url: `${baseUrl}/`, + lastModified: new Date(), + changeFrequency: 'yearly', + priority: 1, + }, + { + url: `${baseUrl}/long-story`, + lastModified: new Date(), + changeFrequency: 'monthly', + priority: 0.8, + }, + { + url: `${baseUrl}/gallery`, + lastModified: new Date(), + changeFrequency: 'weekly', + priority: 0.5, + }, + { + url: `${baseUrl}/dadvocate`, + lastModified: new Date(), + changeFrequency: 'weekly', + priority: 0.5, + }, + ]; +}