From 9679934bb83f9b52c1aeb823c2f3a18b523dcedb Mon Sep 17 00:00:00 2001 From: Oleg Proskurin Date: Mon, 15 Dec 2025 23:34:06 +0700 Subject: [PATCH] feat: add sitemap and robots --- apps/landing/src/app/robots.ts | 11 +++++++++++ apps/landing/src/app/sitemap.ts | 12 ++++++++++++ 2 files changed, 23 insertions(+) create mode 100644 apps/landing/src/app/robots.ts create mode 100644 apps/landing/src/app/sitemap.ts diff --git a/apps/landing/src/app/robots.ts b/apps/landing/src/app/robots.ts new file mode 100644 index 0000000..d6a5ff2 --- /dev/null +++ b/apps/landing/src/app/robots.ts @@ -0,0 +1,11 @@ +import { MetadataRoute } from 'next'; + +export default function robots(): MetadataRoute.Robots { + return { + rules: { + userAgent: '*', + allow: '/', + }, + sitemap: 'https://banatie.app/sitemap.xml', + }; +} diff --git a/apps/landing/src/app/sitemap.ts b/apps/landing/src/app/sitemap.ts new file mode 100644 index 0000000..83e25bd --- /dev/null +++ b/apps/landing/src/app/sitemap.ts @@ -0,0 +1,12 @@ +import { MetadataRoute } from 'next'; + +export default function sitemap(): MetadataRoute.Sitemap { + return [ + { + url: 'https://banatie.app/', + lastModified: new Date(), + changeFrequency: 'weekly', + priority: 1, + }, + ]; +}