Skip to content

armgit / E2B

Public Imported from GitHub
0

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

Remove trailing "/"

Jakub Novakec25bbb9cde7
diff --git a/apps/docs/src/utils/sitemap.ts b/apps/docs/src/utils/sitemap.ts
index 7c49e366f..562d6e1d1 100644
--- a/apps/docs/src/utils/sitemap.ts
+++ b/apps/docs/src/utils/sitemap.ts
@@ -24,7 +24,7 @@ export function getPageForSitemap(
pathname = ''
}
- const url = new URL(pathname, urlPrefix).href
+ const url = new URL(pathname, urlPrefix).href.replace(/\/$/, '')
const lastModified = fs.statSync(filePath).mtime
return {
url,