My portfolio had been live for months. Next.js 16, server-rendered, structured data on every page, a sitemap Google had already swallowed. I assumed it was fine.
Then I actually audited it. Four bugs. Six pages shipping with no H1 at all, one page that rendered absolutely nothing to crawlers, og:image silently deleted from seven of eight URLs, and a robots.txt that welcomed the wrong robots.
None of it showed up in Lighthouse. Every one of them was costing me traffic.
Here's all four, why each one happened, and what the fix looked like.
📉 First, the damage
Search Console, 90 days:
10 clicks. 232 impressions. 4.3% CTR. Average position 7.6.
Thin, but survivable for a personal site. The part that actually stung was the index report:
- 7 static pages — indexed
- 8 case studies — "Discovered, currently not indexed"
- 2 case studies — "Crawled, currently not indexed"
- 2 case studies — "URL is unknown to Google"
Twelve case studies. Zero indexed. A portfolio where Google had indexed none of the portfolio.
Worse: people were searching my project names. Two of them had impressions — and the pages those searches wanted weren't in the index, so the impression landed on my archive page and the click went nowhere.
🫥 Bug 1: Six pages had no H1
My page titles are kinetic — letters you can drag and throw around, drawn in a canvas by a physics loop. Looks great. Runs only in the browser:
const KineticTitle = dynamic(() => import("./KineticTitle"), {
ssr: false,
loading: () => <div style={{ height: "clamp(340px, 52vh, 560px)" }} />,
});ssr: false. So the title never reaches the server HTML.
And inside the component, the text isn't a heading anyway — it's painted onto a canvas, with a plain div fallback. Nothing a crawler can read as a heading.
Six pages came back the same way: zero h1, zero h2. The first heading in the document was an h3 inside a project card.
What does an H1 actually do in 2026?
Less than people claim. Google has said for years it reads page structure, not a single magic tag. But "less than claimed" is not "nothing" — and a document whose heading hierarchy starts at h3 with no h1 above it isn't sending a weak signal, it's sending a broken one.
The fix was boring. A screen-reader-only H1 per page:
<h1 className="sr-only">Work — Full-Stack Projects by Tanvir Ahamed</h1>.sr-only {
position: absolute;
width: 1px;
height: 1px;
margin: -1px;
overflow: hidden;
clip: rect(0, 0, 0, 0);
white-space: nowrap;
border: 0;
}Not display: none. That hides it from screen readers too, and then you've traded an SEO bug for an accessibility one.
👻 Bug 2: My contact page rendered nothing
This one I didn't see coming.
I fetched /contact with curl. The nav was there. The footer was there. The page? Gone. No heading, no form, no JSON-LD. Just a LOADING… div where my content should be.
At the bottom of the HTML:
$RX("B:2","BAILOUT_TO_CLIENT_SIDE_RENDERING")Here's the chain. My contact form uses useActionState against a server action. That hook bails out of server rendering. React applies a bailout to the nearest Suspense boundary — and my nearest boundary was the whole page.
So one form took the entire page down with it. Heading, schema, contact details, all of it, client-side only.
Why I almost shrugged this off
Googlebot runs JavaScript. It saw the page fine. So in Search Console, nothing looked wrong.
But Googlebot isn't the only crawler that matters now. GPTBot and PerplexityBot fetch raw HTML and don't execute JS. To them my contact page — the page whose entire job is "hire me" — was an empty div.
The fix is to give the form its own boundary so the bailout can't escape it:
<h1 className="sr-only">Contact Tanvir Ahamed — Hire a Full-Stack Developer</h1>
{/* Own boundary: the bailout stops here instead of taking the page */}
<Suspense fallback={null}>
<ContactForm />
</Suspense>I also moved the Sanity-driven contact links into their own async child, so the shell prerenders while that part streams. Page body back in the HTML. The form still hydrates client-side, which is fine — a form isn't content anyone needs to index.
I isolated this with two throwaway routes: one with just the kinetic header, one with just the form. The header rendered. The form didn't. Two minutes of bisecting beat an hour of guessing.
🖼️ Bug 3: og:image deleted from 7 of 8 pages
I set a proper Open Graph image in my root layout. Dynamic, generated per route, 1200×630. Then I checked what was actually being served:
for p in "" work about blog experience certificates contact play; do
echo -n "/$p -> "
curl -sS "https://www.tanvirthedev.com/$p" \
| grep -o '<meta property="og:image" content="[^"]*"' | head -1
echo
doneSeven of eight pages: empty. Only /play had one.
Why /play? Because /play was the one page where I hadn't written an openGraph block.
That's the whole bug. Next merges metadata shallowly at the openGraph key. A page that declares its own openGraph object replaces the parent's entirely — images included.
This is documented, not a Next.js bug — the metadata docs spell out that a child's openGraph fields replace the parent's rather than merging. I just never read that paragraph closely enough.
And it's quieter than it sounds, because a file-based opengraph-image.tsx gets merged in only when your returned metadata has no openGraph.images. Set that key and your generated image is ignored. Set nothing and it works. There's no warning either way.
Eight pages needed one line:
openGraph: {
title: "Tanvir Ahamed — Full-Stack Developer",
description: "...",
type: "website",
url: SITE_URL,
// Next replaces the parent's openGraph wholesale, images included.
// Without this the page ships with no og:image at all.
images: ["/opengraph-image"],
},Months of sharing my own homepage on LinkedIn and WhatsApp as a bare grey text card. That one hurt.
The trap inside the fix
Adding JSON-LD to /play meant adding an openGraph block to /play — which would have deleted the one og:image that still worked. I caught it in the same pass. Worth knowing if you go fixing this: the moment you touch openGraph on a page that was previously inheriting, you own images too.
🤖 Bug 4: My robots.txt welcomed the wrong robots
I'd done the AI-crawler homework. GPTBot, ClaudeBot, Google-Extended, CCBot, all explicitly allowed. I thought I was optimised for AI search.
I'd allowed every training crawler and not one search crawler.
That distinction took me an embarrassingly long time to internalise:
GPTBotcollects training data. It does not decide whether ChatGPT can cite you.OAI-SearchBotis the one that decides that.ClaudeBottrains.Claude-SearchBotdecides citability.Google-Extendedcovers Gemini training and grounding. It has nothing to do with ranking in Google Search.
Allowing training bots is a licensing decision. It buys you no visibility. I'd made the licensing choice and skipped the visibility one entirely.
Now the search crawlers are named explicitly, and the list is generated rather than hand-maintained so every agent gets the same disallow rules:
const DISALLOW = ["/studio/", "/api/", "/design-test"];
const CRAWLERS = [
// AI search / citation — these decide whether you get cited
"OAI-SearchBot",
"Claude-SearchBot",
"PerplexityBot",
// User-triggered fetches
"ChatGPT-User",
"Claude-User",
"Perplexity-User",
// Training only — a licensing choice, not a ranking signal
"GPTBot",
"ClaudeBot",
"Google-Extended",
"CCBot",
];
export default function robots(): MetadataRoute.Robots {
return {
rules: [
{ userAgent: "*", allow: "/", disallow: DISALLOW },
...CRAWLERS.map((userAgent) => ({ userAgent, allow: "/", disallow: DISALLOW })),
],
sitemap: `${base}/sitemap.xml`,
};
}One detail worth stealing: a bot that matches its own User-agent block ignores the * block completely. If you name a crawler, you have to repeat your disallow rules inside its block or you've accidentally opened up everything you meant to hide.
📋 What Google is actually telling you in the index report
I stared at three different "not indexed" statuses before I understood they mean completely different things. Nobody explains this well, so:
"URL is unknown to Google" — it has never seen this page. Not from your sitemap, not from a link. If a URL sits in a submitted sitemap and still reports this, submitting a sitemap clearly isn't the same as being discovered.
"Discovered — currently not indexed" — it knows the URL exists and has chosen not to spend a crawl on it yet. This is a priority decision, made before reading a single word of your page. You usually earn your way out of it with internal links and site-level signals, not by editing the page.
"Crawled — currently not indexed" — it fetched the page, read it, and decided against it. This one is a quality judgment, and it's the one where editing the page is the right response.
I had all three at once, across twelve URLs, which told me I wasn't facing one problem. Two of my pages had never been discovered. Eight were deprioritised before being read. Two were read and rejected. Different causes, different fixes, and no single thing I could change to clear all of them.
🧵 One thread I haven't pulled yet
While digging through the metadata docs I hit something I still need to verify on my own site: for dynamic pages, Next streams metadata rather than putting it in the initial HTML, and crawlers that don't run JavaScript can miss it unless htmlLimitedBots is configured.
Given that bug 2 was exactly this class of problem — content technically present, just not where a raw-HTML crawler looks — I'd rather check it than assume. If it turns out to matter, that's its own post.
🔍 Four commands to check your own site
Every one of these bugs was invisible in Lighthouse and invisible in Search Console. All four showed up in curl.
Count your headings. Zero h1 is a real answer, not a parsing error:
curl -sS https://yoursite.com/some-page | grep -o '<h1' | wc -lCheck your Open Graph image actually ships:
curl -sS https://yoursite.com/ | grep -o '<meta property="og:image"[^>]*>'Look for bailouts. If this prints anything, part of your page isn't server-rendered:
curl -sS https://yoursite.com/ | grep -c 'BAILOUT_TO_CLIENT_SIDE_RENDERING'And read your own robots.txt as a crawler would, not as you remember writing it:
curl -sS https://yoursite.com/robots.txtWhat I got wrong about all this
I'd treated SEO as a checklist. Schema? Added. Sitemap? Generated. AI crawlers? Allowed. Every box ticked, and the output still broken, because I never once checked what was actually in the bytes I was serving.
The framework rendered beautifully in my browser and that felt like proof. It wasn't. ssr: false, a Suspense boundary in the wrong place and a shallow metadata merge are all completely invisible from the browser — and all three are things the framework did exactly as documented.
Still unresolved: the indexing. Fixing headings and metadata doesn't make Google want twelve case studies it has already declined once. My case studies run 260 to 500 words, and "Discovered, currently not indexed" on a low-authority domain usually means Google looked and decided it wasn't worth the crawl. Thin content is the likely reason. It isn't a confirmed one — a young site with few links produces the same symptom.
So that's next: rewrite them properly. Problem, constraint, what I built, what it actually did. Then see whether Google changes its mind.
I'll post the numbers either way.
