question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

noindex defaultConfig always indexes pages

See original GitHub issue

Hi,

First, thank you for this nice lib 😃 I’ve been having trouble understanding the default config setup. I used several default settings and of course the noindex properties.

I don’t want to be indexed so I put : noindex: true

On pages I only overrides title AND/OR description

<NextSeo
      config={{
        title: 'My Title Page'
      }}
    />

But in the end the noindex seems to be used as false and therefore the website is indexed. Any idea ?

Thanks

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:8 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
garmeehcommented, Jan 26, 2019

Hey @n44ps so to fix this I had to add a new way of setting the default to be noindex. This is because Next SEO already has a default of index so it can’t override the same way as all other properties.

Please see here for new docs, please let me know if it helps or if you spot anything wrong.

0reactions
n44pscommented, Jan 24, 2019

No problem, If you need any help ! 😃 For everyone who wants a quick fix, I just overrides config using :

import NextSeo from 'next-seo';
import SEO from '@root/next-seo.config';
...
<NextSeo
      config={{
        ...SEO,
        title: 'My new title',
        description:
          'My new description'
      }}
    />

Thank’s @garmeeh

Read more comments on GitHub >

github_iconTop Results From Across the Web

noindex as default config - WordPress.org
I'm looking for a option to set the robots to noindex as the default config. There are only a view site I want...
Read more >
Where are robot tags for categorysearch and tag pages set?
Setting the description works fine. But the robot-tags are always set to NOINDEX,FOLLOW. Can anyone tell me, where the robot-tags for tag pages...
Read more >
Can't modify nginx index.html file - Stack Overflow
But my index.html file content is nothing. I want just blank page.. How can i modified default index file? Here is my default...
Read more >
Site contents are not crawled with no error SharePoint 2013 ...
Please go to Site Settings > Search and Offline Availability > set the "Always index all Web Parts on this site" to true...
Read more >
How To Crawl JavaScript Websites - Screaming Frog
While Google are generally able to crawl and index most JavaScript content, ... however they will not queue pages for rendering if they...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found