Guard loadSkipAgent against docs routes

cgen-08740275452f42679f6012ae2fb5920b
This commit is contained in:
Builder.io 2025-10-14 01:55:21 +00:00
parent 536631b9a3
commit 3eab9fa042

View file

@ -348,6 +348,11 @@ const loadSkipAgent = async (): Promise<void> => {
return;
}
if (isDocsPath()) {
// Prevent any network activity from documentation routes
return;
}
if (typeof window === "undefined" || typeof document === "undefined") {
return;
}