// fetches the deployed French sitemap and injects its URLs into the English sitemap export default defineEventHandler(async () => { try { const xml = await $fetch('https://docu.djeex.fr/fr/sitemap.xml') const urls = [...xml.matchAll(/([^<]+)<\/loc>/g)].map(m => m[1]) return urls.map(loc => ({ loc })) } catch { return [] } })