sitemap missing (Nuxt)
What this means
Section titled “What this means”No @nuxtjs/sitemap module, no server/routes/sitemap.xml.ts endpoint, and no static public/sitemap.xml. Without a sitemap, search engines cannot efficiently discover your pages, and newly published content may take weeks to appear in results.
How to fix it
Section titled “How to fix it”@nuxtjs/sitemap is the recommended approach. It generates the sitemap automatically from your routes and integrates with @nuxtjs/robots.
npm install @nuxtjs/sitemapexport default defineNuxtConfig({ modules: ['@nuxtjs/sitemap'], site: { url: 'https://example.com', },})The sitemap is available at /sitemap.xml after the next build or server start.
For dynamic content, tell the module where to source additional URLs.
export default defineNuxtConfig({ modules: ['@nuxtjs/sitemap'], site: { url: 'https://example.com', }, sitemap: { sources: ['/api/__sitemap__/urls'], },})For a simple static site with no module, public/sitemap.xml works fine.
<?xml version="1.0" encoding="UTF-8"?><urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9"> <url> <loc>https://example.com/</loc> <lastmod>2025-01-01</lastmod> <priority>1.0</priority> </url></urlset>Verify the fix
Section titled “Verify the fix”curl https://yourdomain.com/sitemap.xmlConfirm the response is valid XML with <urlset> or <sitemapindex> as the root element. Then re-run orino audit.