Skip to content

Connect, collaborate, and grow with a community of TypeScript developers

Fix SEO (#757)

Sean Boultb17eca0ce067
diff --git a/apps/web/public/robots.txt b/apps/web/public/robots.txt
deleted file mode 100644
index d141a322..00000000
--- a/apps/web/public/robots.txt
+++ /dev/null
@@ -1,9 +0,0 @@
-# *
-User-agent: *
-Allow: /
-
-# Host
-Host: https://typehero.dev
-
-# Sitemaps
-Sitemap: https://typehero.dev/sitemap.xml
diff --git a/apps/web/src/app/robots.ts b/apps/web/src/app/robots.ts
index 714ad482..ce2d30db 100644
--- a/apps/web/src/app/robots.ts
+++ b/apps/web/src/app/robots.ts
@@ -6,6 +6,6 @@ export default function robots(): MetadataRoute.Robots {
userAgent: '*',
disallow: ['/api/*'],
},
- sitemap: '/sitemap.xml',
+ sitemap: 'https://typehero.dev/sitemap.xml',
};
}