Parent
#195
What to build
Implement proper SEO metadata and a dynamic sitemap based on Strapi content.
Strapi side:
- Create an
SEO component with fields:
meta_title (string)
meta_description (text)
share_image (media, single) — Open Graph image
- Add the
SEO component to the Page collection type as an optional field.
- Add global fallback SEO fields to the
SiteSettings single type.
Frontend side:
- Update the TanStack Start root layout to merge global SEO settings with per-page SEO data.
- Update the catch-all route to use TanStack Start's
meta function, outputting standard title, description, and Open Graph tags <meta property="og:title" ...>.
- Create a
routes/sitemap.xml.ts (or equivalent) endpoint that queries Strapi for all published Pages and generates a standard XML sitemap. Ensure URLs use the correct production domain from environment variables.
Acceptance criteria
Blocked by
Parent
#195
What to build
Implement proper SEO metadata and a dynamic sitemap based on Strapi content.
Strapi side:
SEOcomponent with fields:meta_title(string)meta_description(text)share_image(media, single) — Open Graph imageSEOcomponent to thePagecollection type as an optional field.SiteSettingssingle type.Frontend side:
metafunction, outputting standard title, description, and Open Graph tags<meta property="og:title" ...>.routes/sitemap.xml.ts(or equivalent) endpoint that queries Strapi for all published Pages and generates a standard XML sitemap. Ensure URLs use the correct production domain from environment variables.Acceptance criteria
SEOcomponent exists in Strapi and is attached to the Page collection and Site Settings/sitemap.xmlroute generates a valid XML sitemap containing all published CMS pagesBlocked by