Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SEO: Configure robots.txt file. #130

Open
jimtyhurst opened this issue Sep 18, 2021 · 2 comments
Open

SEO: Configure robots.txt file. #130

jimtyhurst opened this issue Sep 18, 2021 · 2 comments
Labels
enhancement New feature or request

Comments

@jimtyhurst
Copy link
Collaborator

Expected Behavior

We want the company website to score as high as possible in the Lighthouse SEO scoring.

Actual Behavior

One of the Gatsby Cloud build reports from Lighthouse dinged our code a few points on SEO, saying:

Search engines are unable to include your pages in search results if they don't have permission to crawl them.
...
Blocking Directive Source
x-robots-tag: none

Analysis

  • I looked at the meta tags in the build. I do not see that x-robots-tag anywhere. Maybe it is none by default? Maybe we need to explicitly set that tag.
  • See gatsby-plugin-robots-txt as a way to create robots.txt from metadata in gatsby-config.js
@jimtyhurst jimtyhurst added the enhancement New feature or request label Sep 18, 2021
@craigfisk
Copy link
Collaborator

craigfisk commented Sep 18, 2021 via email

@jimtyhurst
Copy link
Collaborator Author

Yes, I was assuming that whatever was in the branch build would be deployed, but it makes sense that it would be different in this case. I will leave this issue open until we deploy the new company website to production, so we can verify that the new site is indexed correctly.

See also: gatsby-plugin-next-seo.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants