harlan-zw / nuxt-seo

The complete SEO solution for Nuxt.
https://nuxtseo.com
954 stars 57 forks source link

sitemap is empty when only app.vue format is used and the pages directory is non-existent #255

Closed idorenyinudoh closed 13 hours ago

idorenyinudoh commented 1 week ago

Describe the bug

Screenshot 2024-06-19 at 15 31 48 Screenshot 2024-06-19 at 15 32 37

Reproduction

No response

System / Nuxt Info

- Operating System: Darwin
- Node Version:     v18.18.0
- Nuxt Version:     3.11.2
- CLI Version:      3.11.1
- Nitro Version:    2.9.6
- Package Manager:  npm@10.8.1
- Builder:          -
- User Config:      devtools, modules, colorMode, runtimeConfig, site
- Runtime Modules:  nuxt-gtag@1.2.1, @nuxtjs/tailwindcss@6.12.0, @nuxtjs/color-mode@3.4.1, @nuxtjs/sitemap@5.2.0
- Build Modules:    -
harlan-zw commented 1 week ago

This is indeed a bug, it should ideally always have a root path. I'd consider why you'd want to use a sitemap for a site with a single page though.

idorenyinudoh commented 1 week ago

🤷🏽‍♂️

harlan-zw commented 13 hours ago

This is fixed in v5.3.0 of the sitemap module, it will always append the base URL into the app sources.