<?xml version="1.0" encoding="UTF-8"?>
<!--
  Sitemap Index — tất cả lastmod được tính động từ Supabase Edge Function.
  Trỏ Google Search Console về:
    https://wlrtdtuohdpswspyodwm.supabase.co/functions/v1/generate-sitemap?type=index
  File này chỉ là fallback tĩnh; crawler nên dùng URL edge function ở trên.
-->
<sitemapindex xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">

  <!-- Static pages sitemap — lastmod động từ edge function -->
  <sitemap>
    <loc>https://wlrtdtuohdpswspyodwm.supabase.co/functions/v1/generate-sitemap?type=static</loc>
    <lastmod>2026-04-11</lastmod>
  </sitemap>

  <!-- Dynamic posts sitemap — lastmod = MAX(posts.updated_at) -->
  <sitemap>
    <loc>https://wlrtdtuohdpswspyodwm.supabase.co/functions/v1/generate-sitemap?type=posts</loc>
    <lastmod>2026-04-11</lastmod>
  </sitemap>

  <!-- Dynamic profiles sitemap — lastmod = MAX(profiles.updated_at) -->
  <sitemap>
    <loc>https://wlrtdtuohdpswspyodwm.supabase.co/functions/v1/generate-sitemap?type=profiles</loc>
    <lastmod>2026-04-11</lastmod>
  </sitemap>

  <!-- Dynamic members sitemap — lastmod = MAX(profiles.updated_at) -->
  <sitemap>
    <loc>https://wlrtdtuohdpswspyodwm.supabase.co/functions/v1/generate-sitemap?type=members</loc>
    <lastmod>2026-04-11</lastmod>
  </sitemap>

  <!-- Fallback static sitemap -->
  <sitemap>
    <loc>https://anhhungviet.com/sitemap.xml</loc>
    <lastmod>2026-04-11</lastmod>
  </sitemap>

</sitemapindex>
