Skip to content

SEO

Every indexable page sets its own alternates with buildAlternates(locale, path) (apps/theme/src/lib/metadata.ts): a self-referencing canonical, one hreflang link per locale, and x-default pointing at the default locale.

JSON-LD comes from the schema components: organisation, breadcrumbs, product (with offers and ratings), item lists for category and search pages, and blog posts.

URLSource
/robots.txtapp/robots.ts: allows everything and points at /sitemap.xml.
/sitemap.xmlGenerated by Magento. The Sitemap module rewrites its URLs to the storefront’s (/en/product/…).
/llms.txtapp/llms.txt/route.ts: an llms.txt summary built from magenx.config.ts (brand, navigation, locales).
/manifest.webmanifestapp/manifest.ts, from the brand settings.

Site-wide settings (verification tokens, robots behaviour, referrer policy) are in seoBehavior; brand metadata (application name, authors, keywords, Open Graph image) in seo, both in magenx.config.ts.

Next.js streams page metadata into <body> for browsers. Crawlers that don’t run JavaScript would then miss the title, description, canonical and hreflang links. apps/theme/src/lib/html-limited-bots.ts lists AI crawlers and assistants’ page fetchers (GPTBot, OAI-SearchBot, ChatGPT-User, ClaudeBot and others) so they get the render with metadata in <head>, like Bingbot. Googlebot runs JavaScript and keeps the streamed render.

nginx caches the two renders separately, so a bot never receives a browser’s cached page.

  • Product, category and CMS URLs come from Magento URL keys; /{locale}/{slug} resolves CMS pages and other URL rewrites.
  • The Price History module supplies the EU prior price shown next to any reduction.
  • For shopping feeds (Google, Meta, OpenAI), use Product Feeds.