sources: [ '/api/__sitemap__/urls' ],
export default defineSitemapEventHandler(async () => { try { const response = await fetch('https://backend.api.url/urls'); const data = await response.json(); if (Array.isArray(data)) { return data; } else { console.error('Unexpected data format from api.mcmodels.net/urls'); return []; } } catch (error) { console.error('Error fetching sitemap data:', error); return []; }})