Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
N
next.js
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Alex
next.js
Commits
69765f4d
Unverified
Commit
69765f4d
authored
Jun 03, 2025
by
Vitalie
Committed by
GitHub
Jun 03, 2025
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Extend bot list with googleweblight, Storebot-Google, Google-Inspecti… (#77728)
Co-authored-by:
Jiachi Liu
<
inbox@huozhi.im
>
parent
0329a7e2
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
3 deletions
+4
-3
is-bot.ts
packages/next/src/shared/lib/router/utils/is-bot.ts
+4
-3
No files found.
packages/next/src/shared/lib/router/utils/is-bot.ts
View file @
69765f4d
import
{
HTML_LIMITED_BOT_UA_RE
}
from
'./html-bots'
// Bot crawler that will spin up a headless browser and execute JS
const
HEADLESS_BROWSER_BOT_UA_RE
=
/Googlebot|Google-PageRenderer|AdsBot-Google|googleweblight|Storebot-Google/i
// Bot crawler that will spin up a headless browser and execute JS.
// By default, only googlebots are considered as DOM bots. Blow is where the regex is computed from:
// x-ref: https://developers.google.com/search/docs/crawling-indexing/google-common-crawlers
const
HEADLESS_BROWSER_BOT_UA_RE
=
/google/i
export
const
HTML_LIMITED_BOT_UA_RE_STRING
=
HTML_LIMITED_BOT_UA_RE
.
source
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment