Is it possible to regenerate sitemap if I change my API data without rerunning 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?
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.
Check readme and look for: Function which returns a Promise
Is it what you are looking for?