Static GitHub Issues

[1285] RSS feed and sitemap

prev: scrollToTop or saveBehavior not work when use 100vh height=100% in layout
next: nuxt can not run in ie 10 and 11

Hi,

I was wondering how static files like rss feeds (atom.xml) and sitemap could and should be generated? These are not part of the App, but are built using its datas…

On old versions of my website, I was just creating a js file to be called on webpack build:

That worked, but now I want to add this in my nuxt website; and I don't really find out what would be the more… "nuxt-ish" way to achieve this?

Shall I "just" put the scripts in the middleware folder, call them in nuxt.config.js the same way I did in the webpack config ? I feel like that'd be very poorly implemented.

Thanks for any advice.

<!--cmty--><!--cmty_prevent_hook--><div align="right"><sub><em>This question is available on <a href="https://nuxtjs.cmty.io">Nuxt.js</a> community (<a href="https://nuxtjs.cmty.io/nuxt/nuxt.js/issues/c1138">#c1138</a>)</em></sub></div>