Compare commits

...

2 Commits

Author SHA1 Message Date
Nolann Biron f45949d407 changeset 2026-10-06 12:37:40 +02:00
Nolann Biron 1a4956e81d Track server-side Insights events with the site's public URL 2026-10-06 12:37:40 +02:00
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,
},
})