Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

No XML #18

Closed
rcerljenko opened this issue Mar 17, 2023 · 8 comments
Closed

No XML #18

rcerljenko opened this issue Mar 17, 2023 · 8 comments

Comments

@rcerljenko
Copy link

Describe the bug

Hi,

Am I doing something wrong after updating to v2 because I can't view the XML.
Only this empty HTML site: https://nuxt3-vercel-mu.vercel.app/sitemap.xml

// nuxt.config.ts

sitemap: {
	siteUrl: 'https://' + process.env.VERCEL_URL
},

Reproduction

No response

System / Nuxt Info

No response

@harlan-zw
Copy link
Collaborator

Hey @rcerljenko, thanks for the issue :)

Could you confirm that the site you're using has pages? If it's just an app.vue then I think I guess this is a bug as it should add the root URL always.

Otherwise, are you using vercel-edge?

Any type of reproduction would be helpful if possible

@rcerljenko
Copy link
Author

@rcerljenko
Copy link
Author

to be clear... this worked perfectly in the v1 :)

@harlan-zw
Copy link
Collaborator

Thanks, can you try with 2.1.8 please 🙏

@rcerljenko
Copy link
Author

sure thing! as soon as i get to my laptop later today... thx for caring!

@rcerljenko
Copy link
Author

ok now it detects all routes but it still renders the HTML preview site
is this normal behavior? i mean, it will render the XML when bot request is ongoing?

https://nuxt3-vercel-mu.vercel.app/sitemap.xml

@harlan-zw
Copy link
Collaborator

ok now it detects all routes but it still renders the HTML preview site is this normal behavior? i mean, it will render the XML when bot request is ongoing?

https://nuxt3-vercel-mu.vercel.app/sitemap.xml

The "HTML preview site" is actually just a XML stylesheet. This is completely valid and robots won't use it.

Feel free to check the HTML source / verify it using any third-party tool, it should validate.

Going to close this issue but happy to keep discussing

@rcerljenko
Copy link
Author

awesome thx!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants