Is it possible to regenerate sitemap if I change my API data without rerunning npm run build?
npm run build
I mean, Nuxt by itself doesn't need to rebuild everytime I add/change article. It just fetch new data.
Can this be done with this sitemap module?
Check readme and look for: Function which returns a Promise
Is it what you are looking for?
@TomFrajer axios is already returns a promise. I am not sure I am following what do you mean.
The sitemap-module have a cache of 15 minutes (by default) : https://github.com/nuxt-community/sitemap-module#cachetime
Then the sitemap.xml will be rebuild on next call.