Skip to content

armgit / E2B

Public Imported from GitHub
0

Open-source, secure environment with real-world tools for enterprise-grade agents.

remove: all sitemap paths for legacy docs

Ben Fornefeld213bcdd3518c
diff --git a/apps/web/src/app/sitemap.ts b/apps/web/src/app/sitemap.ts
index 762b40490..9babbd265 100644
--- a/apps/web/src/app/sitemap.ts
+++ b/apps/web/src/app/sitemap.ts
@@ -16,6 +16,8 @@ export default async function sitemap(): Promise<MetadataRoute.Sitemap> {
'https://e2b.dev/docs/',
0.8
)
+ // Filter out legacy docs pages
+ .filter((entry) => !entry.url.includes('/docs/legacy'))
// Deduplicate URLs, keeping the entry with highest priority
const urlMap = new Map<string, MetadataRoute.Sitemap[0]>()