Velohost Velohost

Astro & SEO

Astro NoIndex Plugin FAQs

Clear answers explaining how Astro NoIndex enforces noindex rules safely and deterministically.

Answers

Why does Astro NoIndex exist?

Because accidental indexing of staging and preview sites causes real SEO damage and is difficult to reverse.

How does hostname allow-listing work?

Only exact hostnames listed in the allow array are permitted to be indexed. All others receive noindex directives.

What if the site option is undefined?

If the site hostname cannot be determined, astro-noindex applies noindex by default.

What if a page already defines a robots meta tag?

astro-noindex respects explicit user intent and does not modify pages that already include a robots meta tag.

Does Astro NoIndex require middleware or adapters?

No. It performs static HTML mutation at build time only.

Is Astro NoIndex compatible with CDNs?

Yes. The output is static, cache-safe, and works behind any CDN.

Does it affect production builds?

Only if the production hostname is not explicitly allow-listed.

Is Astro NoIndex open source?

Yes. Astro NoIndex is released under the MIT license.

Want to try it yourself? Astro NoIndex plugin or Astro Canonical plugin or Astro Head Check plugin

Need to prevent accidental indexing of non-production sites?