mirror of
https://github.com/GitbookIO/gitbook.git
synced 2026-10-12 16:09:33 +00:00
Track server-side Insights events with the site's public URL
This commit is contained in:
@@ -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,
|
||||
},
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user