Salta ai contenuti

SEO

Tutto vive in @kotao/storefront/seo (esportato anche dalla radice).

Restituisci i dati SEO dalla catena meta del tuo route con getSeoMeta :

import { getSeoMeta } from "@kotao/storefront";
export const meta: Route.MetaFunction = ({ data }) =>
getSeoMeta({
title: data.product.title,
description: data.product.summary,
});

The <Seo /> component (from /react) covers the render-side when you prefer a component.

JSON-LD builders for the common shapes: productJsonLd, organizationJsonLd, websiteJsonLd, breadcrumbListJsonLd, localBusinessJsonLd, restaurantJsonLd. Serialize with serializeJsonLd — it escapes for safe embedding in a <script> tag.

Aggiungi route di risorsa che restituiscono robotsResponse(options) e sitemapResponse / sitemapIndexResponse (o costruisci l’XML tu stesso con buildSitemapXml). Rimangono nel tuo tema, così controlli cosa viene elencato.

storefrontRedirect risolve i redirect URL configurati dal commerciante (gestiti nello Workspace) per percorsi non corrisposti — chiamalo dal tuo route catch-all prima di renderizzare il 404, così le pagine spostate ricevono 301 invece di terminare in errore.