Record proxied sites' markdown, llms.txt and RSS requests under their public URL (#4660)

This commit is contained in:
Nolann B.
2026-10-07 11:53:03 +02:00
committed by GitHub
parent 5c4a808ba8
commit 552538a0d9
2 changed files with 7 additions and 1 deletions
+5
View File
@@ -0,0 +1,5 @@
---
"gitbook": patch
---
Track server-side Insights events (markdown, llms.txt, RSS, ask) with the site's public URL instead of the proxy URL.
+2 -1
View File
@@ -508,7 +508,8 @@ async function serveSiteRoutes(requestURL: URL, request: NextRequest) {
siteId: siteURLData.site,
events,
request: {
url: siteRequestURL.toString(),
// A proxied site's request URL is the proxy's (`/sites/site_xxx/...`), not its public one.
url: siteCanonicalURL.toString(),
headers: requestHeaders,
},
})