From c3e6b8820d8316d2afbec7343edb8d595224428c Mon Sep 17 00:00:00 2001 From: khanavi272-spec Date: Sun, 29 Mar 2026 12:02:58 +0530 Subject: [PATCH] feat: add sitemap and robots.txt for SEO (#397) --- frontend/public/robots.txt | 7 +++++++ frontend/src/app/sitemap.ts | 30 ++++++++++++++++++++++++++++++ 2 files changed, 37 insertions(+) create mode 100644 frontend/public/robots.txt create mode 100644 frontend/src/app/sitemap.ts diff --git a/frontend/public/robots.txt b/frontend/public/robots.txt new file mode 100644 index 00000000..0e1c34c9 --- /dev/null +++ b/frontend/public/robots.txt @@ -0,0 +1,7 @@ +User-agent: * +Allow: / + +Disallow: /api/ +Disallow: /admin/ + +Sitemap: https://insightarena.com/sitemap.xml \ No newline at end of file diff --git a/frontend/src/app/sitemap.ts b/frontend/src/app/sitemap.ts new file mode 100644 index 00000000..5c5b1de7 --- /dev/null +++ b/frontend/src/app/sitemap.ts @@ -0,0 +1,30 @@ +import { MetadataRoute } from "next"; + +export default function sitemap(): MetadataRoute.Sitemap { + return [ + { + url: "https://insightarena.com", + lastModified: new Date(), + changeFrequency: "daily", + priority: 1, + }, + { + url: "https://insightarena.com/markets", + lastModified: new Date(), + changeFrequency: "hourly", + priority: 0.9, + }, + { + url: "https://insightarena.com/leaderboard", + lastModified: new Date(), + changeFrequency: "daily", + priority: 0.8, + }, + { + url: "https://insightarena.com/docs", + lastModified: new Date(), + changeFrequency: "weekly", + priority: 0.7, + }, + ]; +} \ No newline at end of file