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