Replies: 3 comments 6 replies
-
|
related to #4765 |
Beta Was this translation helpful? Give feedback.
-
|
You should build each version as a separate site and use external links to link to them. Docusaurus uses this trick for any older version: docusaurus/website/docusaurus.config.js Lines 382 to 398 in 813300b For example, if you use Netlify / Vercel, you can just pick an immutable deployment URL, and remove the version's docs from your site source. Keep your active versions at around 5. |
Beta Was this translation helpful? Give feedback.
-
|
Docusaurus 2 builds a real SPA while v1 only used React on the frontend. Indeed our Webpack/Babel/MDX setup is heavier and can it can take more time to build your site. I'd like to write some doc about build time scalability, but yes ultimately v2 is going to be slower than v1 for the same amount of pages. As @Josh-Cena mentioned you can archive older versions to standalone Jamstack immutable deployments, we do this on the Docusaurus site itself.
Also we have Webpack 5 persistent caching, if you setup your CI to cache |
Beta Was this translation helpful? Give feedback.

Uh oh!
There was an error while loading. Please reload this page.
-
Hello ! We are in the process of migrating from v1 to v2, and we ran into performance issues while building and using the site.
Basically, our documentation must follow the version of our application, even minor or patches. We had no problem with docusaurus 1 because the build step generated a simple versioned docs folder, but now the build process takes forever.
We currently have 131 versions, with around 50k files, the registry weights 5mb, the build time & mem consumption is high :/ Couldn't we just load the latest versions in memory, and have a dynamic routing which would try to resolve older ones on-demand?
I can't seem to find the best way to go forward, we could "segment" the versions into "groups" to make the build quicker, but it wouldn't be very friendly (and may impact seo), plus having to manage said groups.. Otherwise, being able to "archive" a version somehow and remove it from the react site (while keeping it available) could be interesting...
Our documentation is open source: https://botpress.com/versions
And the migration to v2: https://github.com/botpress/docs/tree/DOC-68-Migrate-Docusaurus-from-V1-to-V2
There was a previous discussion with similar scaling issues (#3132) but I would like to have some inputs on our situations.
Thanks
Beta Was this translation helpful? Give feedback.
All reactions