PhoenixKit 2.12.0: Every sitemap domain gets its own home page
PhoenixKit 2.12.0 completes the sitemaps of sites that serve each language from its own domain: every domain’s sitemap now lists its own home page and static pages, not only its products and other content.
Static pages on every domain
A site can map several domains to languages, for example example.fr for French, through the :sitemap_domains_provider config. Each domain then gets its own sitemap. The home page and the other static entries, from sitemap_static_routes and sitemap_custom_urls, were only collected for the default language. So the sitemap of every other domain listed the products in its language but not its own home page.
These pages are now collected for each language with a domain, and published without a language prefix on that domain, like the rest of its entries. The sitemap at /sitemap.xml for a host without a domain mapping does not change.
Choosing which pipelines count as non-pages
Since 2.11.0, routes in the :api and :phoenix_kit_api pipelines are left out of the sitemap when routes are discovered from the router. A new setting, sitemap_non_page_pipelines, replaces that list. A site that serves real pages through a pipeline named :api can take it off the list, and saving [] turns this check off. The existing sitemap_protected_pipelines setting still adds to the exclusions instead of replacing them. The new setting has no field in the admin; it is a settings value.
Regeneration needs a site URL
Sitemap.regenerate/1 used to go ahead without a site URL and would have written addresses without a host. It now returns {:error, :base_url_not_configured}, as scheduled regeneration already did. Set the site URL in the settings before regenerating.
Upgrading
No migration and no configuration. Update the dependency; the next sitemap generation adds each domain’s static pages.
Full release notes: PhoenixKit 2.12.0
2.12.0 · 17 August 2026
Every mapped sitemap domain gets its own static pages, with the review follow-ups needed to ship it safely (#730).
Added
- A mapped sitemap domain now gets its own static pages (home page and
any other
sitemap_static_routes/sitemap_custom_urlsentry) — a language with a domain of its own serves these prefix-free from that host, butSources.Staticpreviously emitted them for the default language only, so every non-primary domain’s sitemap was missing its own home page while still listing its products. The prefixed URL this collects is an intermediate forDomainModeto re-host, not a published one — it never reaches the legacy/index set served to unmapped hosts (#730). sitemap_non_page_pipelinessetting — an escape hatch for the JSON-pipeline route exclusion added in 2.11.0: unlikesitemap_protected_pipelines, this one replaces the default pipeline list rather than extending it, so a host that serves real pages through a pipeline literally named:apican take it off the list. Saving[]turns pipeline-based exclusion off entirely (#730).
Fixed
Sitemap.regenerate/1accepted an unconfiguredsite_urland would have written host-less<loc>entries instead of failing — it now returns{:error, :base_url_not_configured}, matching the guardSchedulerWorkeralready had for scheduled regeneration (#730).
PhoenixKit 2.12.0. Install or update: {:phoenix_kit, "~> 2.12"}, then mix deps.get && mix phoenix_kit.update. Full history: CHANGELOG.