SEO
Canonical and hreflang
Section titled “Canonical and hreflang”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.
Structured data
Section titled “Structured data”JSON-LD comes from the schema components: organisation, breadcrumbs, product (with offers and ratings), item lists for category and search pages, and blog posts.
Robots, sitemap and llms.txt
Section titled “Robots, sitemap and llms.txt”| URL | Source |
|---|---|
/robots.txt | app/robots.ts: allows everything and points at /sitemap.xml. |
/sitemap.xml | Generated by Magento. The Sitemap module rewrites its URLs to the storefront’s (/en/product/…). |
/llms.txt | app/llms.txt/route.ts: an llms.txt summary built from magenx.config.ts (brand, navigation, locales). |
/manifest.webmanifest | app/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.
AI crawlers
Section titled “AI crawlers”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 data
Section titled “Product data”- 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.