Static GitHub Issues

[1090] multi-threaded nuxt generate

prev: Looking for help on configuring the Vue linter in the starter app
next: robots.txt?

Would it be possible to implement a multi-threaded generate command for nuxt, e.g. with webworker-threads? I know there are other possibilities for projects with a large number of (dynamic) pages (e.g. #418), but was wondering anyway whether we could speed-up the process by utilizing more than 1 thread. I have a project with ~50k pages which currently takes 3+ hours to generate (about 4-5 pages per second). It seems this is at the moment cpu limited as nodejs only runs on one thread (and is the only process at 100% cpu).

As 3+ hours is too much time for me, I am now looking at putting nginx as a caching reverse proxy in front of nuxt, but I would prefer to generate static files which I could push to an object store with cdn. My goal for this would be to be able to generate all 50k pages in half an hour max.

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