How to fix article missing author on Next.js (Headless)

Add a structured-data author field (schema.org Person) to every article or blog post so AI engines and Google can identify and trust who wrote the content.

Steps for Next.js (Headless)

  1. Locate (or create) your article/blog-post page component — typically `app/blog/[slug]/page.tsx` (App Router) or `pages/blog/[slug].tsx` (Pages Router). This is where the JSON-LD fix lives.
  2. Fetch the author data alongside the article payload from your headless CMS/API (name, URL, image). If the CMS doesn't expose a per-article author, define a sitewide fallback author object in a shared config file such as `lib/seo-config.ts`.
  3. In the App Router, add or extend the `generateMetadata` export for `<title>`/`<meta>` tags, then inject a separate `<Script id='article-jsonld' type='application/ld+json'>` component (from `next/script`) inside the page JSX that carries the full `Article` + `author` schema.
  4. Ensure the `author` field is typed as `{ '@type': 'Person', name: string, url?: string, image?: string }`. For multiple authors, pass an array. For an organisation byline, use `'@type': 'Organization'` instead.
  5. In the Pages Router alternative, place the same `<Script>` block (or a `<script>` tag inside `next/head`) inside the page component that already receives `getStaticProps` / `getServerSideProps` article data.
  6. Validate the output with Google's Rich Results Test (https://search.google.com/test/rich-results) and the Schema Markup Validator (https://validator.schema.org) before deploying.
Official Next.js (Headless) documentation ↗

What is article missing author?

When you publish a blog post, guide, or news article on your store, search engines and AI assistants look for a machine-readable "author" signal — a structured-data block (written in JSON-LD) that names the person who wrote the piece, their credentials, and ideally a link to their public profile. Without this signal, the page has no verifiable author identity. It is part of the schema.org Article (or BlogPosting) markup standard and is one of the key signals Google uses to evaluate E-E-A-T (Experience, Expertise, Authoritativeness, Trustworthiness).

Google has explicitly stated that authorship signals help it assess content quality, especially for "Your Money or Your Life" topics like health, finance, and product advice that many ecommerce blogs cover. AI-powered answer engines (ChatGPT, Perplexity, Google SGE/AI Overviews) use structured authorship to decide whether to surface and cite your content. Missing author markup means your articles are treated as anonymous — reducing the chance they rank in traditional search and get cited by AI tools. Stores that invest in content marketing but skip author markup are leaving significant organic-traffic value unrealised; adding it is a quick technical win that directly supports long-term content ROI.

See the complete Article missing author guide for every platform and the full background.

Not sure if your Next.js (Headless) store has this?

Run a free SEOLZ scan — we’ll find article missing author and every other issue across your whole site.

Scan my site free

Fix article missing author on another platform