Skip to content

Fix Open Graph tags not being crawlable - #1

Merged
MorganGodden merged 1 commit into
masterfrom
claude/stoic-euler-vtavzg
Jul 27, 2026
Merged

MorganGodden merged 1 commit into
masterfrom
claude/stoic-euler-vtavzg

Conversation

@MorganGodden

Copy link
Copy Markdown
Owner

Summary

  • public/_robots.txt disallowed every user-agent from the entire site, in every environment (User-agent: * / Disallow: /). This meant no crawler — including LinkedIn's bot — could ever fetch a page to read its Open Graph tags, which is almost certainly why godden.dev couldn't be added as a featured link on LinkedIn. The @nuxtjs/robots module itself warns about this pattern and recommends using site config's indexable toggle instead, so the file has been removed and indexability is now managed automatically by the SEO module (verified locally: robots.txt now serves Disallow: — i.e. allow-all — with the sitemap link intact).
  • Added a site config block (url, name, description, defaultLocale) to nuxt.config.ts. @nuxtjs/seo needs this to emit absolute og:image/og:url/canonical URLs. Without it, generated tags could end up relative or wrong, which LinkedIn's scraper rejects. Verified locally: the homepage now renders og:image, og:url, and <link rel="canonical"> all as fully-qualified https://godden.dev/... URLs.

Per-page OG title/description/image handling (useSeoMeta + defineOgImage) was already correctly implemented on every page, so no changes were needed there.

Test plan

  • npm run typecheck — passes, no errors
  • npm run build — succeeds, 14 routes prerendered
  • Ran the built server locally and confirmed curl /robots.txt now returns an allow-all policy (previously blocked everything)
  • Confirmed og:image, og:url, and canonical link on / are absolute https://godden.dev/... URLs
  • After merge, re-check the URL with LinkedIn's Post Inspector to confirm the featured-link issue is resolved

🤖 Generated with Claude Code

https://claude.ai/code/session_018f2wzgJosMytSkL6AxNUwK


Generated by Claude Code

public/_robots.txt disallowed every user-agent from the entire site in
every environment, which stops LinkedIn's crawler (and all other bots)
from ever fetching the page to read its Open Graph tags. Removing it
lets @nuxtjs/seo manage indexability via site config instead, as the
module itself recommends.

Also add the `site` config (url/name/description) that @nuxtjs/seo
needs to generate absolute og:image and og:url values — without it,
prerendered OG tags could be relative/incorrect, which LinkedIn's
scraper rejects.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_018f2wzgJosMytSkL6AxNUwK
@vercel

vercel Bot commented Jul 27, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
godden.dev Ready Ready Preview, Comment Jul 27, 2026 5:27am

@MorganGodden
MorganGodden merged commit 0cac9eb into master Jul 27, 2026
2 of 3 checks passed
@MorganGodden
MorganGodden deleted the claude/stoic-euler-vtavzg branch July 27, 2026 07:19

This branch was successfully deployed

1 active deployment
Preview — accd0e60 Deployed Jul 27, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants