Skip to content

Commit bc90adb

Browse files
authored
Allow indexation of images to ensure favicons display on Google (#3041)
1 parent 1505ddb commit bc90adb

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

.changeset/fluffy-planes-kick.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"gitbook": patch
3+
---
4+
5+
Fix favicon not being displayed in Google because `robots.txt` was preventing the indexation of the image route

packages/gitbook/src/routes/robots.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,6 @@ export async function serveRobotsTxt(context: GitBookSiteContext) {
1010
const isRoot = checkIsRootSiteContext(context);
1111
const lines = [
1212
'User-agent: *',
13-
// Disallow image resizing
14-
'Disallow: /~gitbook/',
1513
// Disallow dynamic routes / search queries
1614
'Disallow: /*?',
1715
...((await isSiteIndexable(context))

0 commit comments

Comments
 (0)