You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently it seems like /sitemap.xml is a dynamic route that the Nuxt server resolves rather than an actual file. This might be fine for most use cases but for example on Vercel this will resolve to a 404 page, issue: #256
It would be nice if the sitemap can be generated as a file in the build step by CLI, e.g. nuxt build && nuxt-sitemap generate. This would fix the issue above.
The text was updated successfully, but these errors were encountered:
I'm not exactly sure what is going on with Vercel Edge that it doesn't work, but you should just be able to add the sitemap path to the prerender routes and it will generate it statically.
This would fix the issue :) I will give it a try soon.
The thing with Vercel is it seems to be looking for a real xml file instead of going through the Nuxt router and then Vercel shows a 404. I will do a reproduction repo.
Currently it seems like
/sitemap.xml
is a dynamic route that the Nuxt server resolves rather than an actual file. This might be fine for most use cases but for example on Vercel this will resolve to a 404 page, issue: #256It would be nice if the sitemap can be generated as a file in the build step by CLI, e.g.
nuxt build && nuxt-sitemap generate
. This would fix the issue above.The text was updated successfully, but these errors were encountered: