Skip to content

Switch base URL to archive.sparkpost.com and noindex the site#855

Open
PauloJeunonSousa wants to merge 1 commit into
mainfrom
archive-sparkpost-noindex
Open

Switch base URL to archive.sparkpost.com and noindex the site#855
PauloJeunonSousa wants to merge 1 commit into
mainfrom
archive-sparkpost-noindex

Conversation

@PauloJeunonSousa

@PauloJeunonSousa PauloJeunonSousa commented Jun 25, 2026

Copy link
Copy Markdown
Contributor

Summary

For SEO/GEO, the docs site is moving off support.sparkpost.com so it stops competing with bird.com and instead funnels link equity to Bird. The broader cutover has three parts; this PR owns only the in-repo piece.

  • Base URL: next-sitemap.js default switched from https://support.sparkpost.com to https://archive.sparkpost.com. process.env.SITE_URL still wins at build time.
  • Noindex at three layers so search engines drop the archive:
    • robots.txt (generated by next-sitemap): added disallow: ['/'] to the * policy.
    • HTML: components/site/seo.tsx now emits <meta name="robots" content="noindex, nofollow" /> (was index, follow, max-*).
    • HTTP response: netlify.toml [headers.values] adds X-Robots-Tag = "noindex, nofollow" for all paths.
  • CSP refresh: netlify.toml font-src updated from support.sparkpost.com to archive.sparkpost.com so the directive doesn't go stale after DNS flips.

Markdown content with hardcoded support.sparkpost.com links is intentionally left alone — once the Cloudflare distro (out of scope here) is live, those self-references will 301 to bird.com, which is the desired SEO funnel.

Out of scope (handled outside this repo)

  • Cloudflare distribution + KV redirecting support.sparkpost.com/*bird.com/* (3,414-entry mapping).
  • Netlify dashboard: change the site's primary custom domain from support to archive.
  • DNS: repoint support.sparkpost.com to the new Cloudflare distro; point archive.sparkpost.com at Netlify.

Test plan

  • npm run build succeeds locally
  • public/sitemap.xml lists URLs under https://archive.sparkpost.com/...
  • public/robots.txt contains Disallow: / and Host: https://archive.sparkpost.com
  • No remaining references to the old robots meta string in cypress/, components/, or pages/
  • Once the Netlify deploy preview is up, curl -I <preview-url> shows X-Robots-Tag: noindex, nofollow
  • View source on a preview page: <meta name="robots" content="noindex, nofollow"> is present in <head>
  • Cypress suite passes in CI

🤖 Generated with Claude Code


Note

Medium Risk
Changes global crawl/indexing behavior and canonical sitemap host; misconfiguration could hide or mis-attribute the archive in search until DNS/Netlify domain cutover completes.

Overview
Repositions the docs site as an archive at archive.sparkpost.com and tells search engines not to index it, so it stops competing with bird.com for SEO.

Base URL: next-sitemap.js default siteUrl moves from support.sparkpost.com to archive.sparkpost.com (still overridable via SITE_URL at build).

Noindex (three layers): Shared SEO head meta switches from index, follow to noindex, nofollow. Netlify adds X-Robots-Tag: noindex, nofollow on all paths. Generated robots.txt gets Disallow: / for *.

CSP: font-src in netlify.toml allows archive.sparkpost.com instead of support.sparkpost.com.

Hardcoded support.sparkpost.com links in markdown are unchanged; external DNS/Cloudflare cutover is out of scope.

Reviewed by Cursor Bugbot for commit a3202d6. Bugbot is set up for automated code reviews on this repo. Configure here.

Moves the docs site from support.sparkpost.com to archive.sparkpost.com
so the content can be archived (and later 301'd to bird.com) without
competing with bird.com in search. Adds noindex/nofollow at three layers
(robots.txt, <meta name="robots">, X-Robots-Tag header) so search engines
drop the archive.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@netlify

netlify Bot commented Jun 25, 2026

Copy link
Copy Markdown

Deploy Preview for support-docs ready!

Name Link
🔨 Latest commit a3202d6
🔍 Latest deploy log https://app.netlify.com/projects/support-docs/deploys/6a3d3afa7b83370008755650
😎 Deploy Preview https://deploy-preview-855--support-docs.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants