Skip to the content
All posts

Deploys3 min read

Why a green build can still break your SEO

Tests, type checks and previews all pass, and the site still drops out of search. What a pipeline does not look at, and how to close the gap.

The build is green. The tests pass, the types check, the preview looked right and the deploy went out on time. Three weeks later somebody opens the search report and asks why the product pages lost half their impressions.

Nothing in that story is a bug in the usual sense. Nothing threw an error. The site works for everyone who visits it. It only stopped working for the one reader who never files a ticket: a search engine's crawler.

What a pipeline checks

A good pipeline answers three questions. Does the code compile? Do the functions return what the tests expect? Does the page look right in a browser? All three are about how the site behaves for a person.

A crawler asks different questions. May I fetch this address? Am I allowed to index it? Which address does this page say is the real one? Where does this link lead, and how many redirects are in the way? The answers live in places a test suite rarely opens: the <head>, the response headers, robots.txt and the sitemap.

Small, valid changes

What makes these regressions hard to see is that each one is correct code. A type checker has no opinion on any of them.

Four lines that pass every test
<meta name="robots" content="noindex">
<link rel="canonical" href="https://preview-482.example.dev/pricing">
X-Robots-Tag: noindex
Disallow: /
  • A noindex that was meant for staging. The page renders exactly as before. Search engines drop it the next time they crawl it.
  • A canonical built from the wrong base URL. Every page now says its real home is a preview host.
  • A header added at the edge. No template changed, so no template review would find it.
  • A robots.txt copied from another environment. One line, and crawlers are asked to stay out of the whole site.

Why it stays hidden for weeks

A broken checkout is noticed in minutes, because people complain. A broken canonical is noticed when traffic falls, and traffic falls slowly: search engines crawl a site over days, and a report shows the result later still. By the time somebody looks, there are thirty deploys between the cause and the question.

How to close the gap

The step that is missing comes after the deploy, and it has three parts.

  1. Crawl what shipped. Fetch the real pages on the real host, read their tags and headers, follow their links and redirects.
  2. Compare with before. A noindex on a login page is fine if it was there last week. A noindex that arrived today on a product page is the news.
  3. Tie it to the deploy. A finding that names the release that brought it in goes to the person who can fix it, while they still remember the change.

Where Ranky fits

This is the job Ranky was built for. It scans the site after every deploy, compares the result with the scan before, and names the deploy on every issue that deploy brought in, with the value before and the value after. A preview can be scanned at its own address and compared with production before it is merged.

See how to connect your deploys, or read every check Ranky runs.

Catch the next bad deploy before search engines do

Start with one site, free. Every check, weekly scans, no card needed.