From 27bda1b7235b89477a3af6ab4d562592b3d9466c Mon Sep 17 00:00:00 2001 From: slorber Date: Mon, 31 Aug 2020 16:54:52 +0200 Subject: [PATCH] fix netlify deploy when versioning is disabled --- website/docusaurus.config.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/website/docusaurus.config.js b/website/docusaurus.config.js index 75675e00ccbe..6ec8f7f83dd5 100644 --- a/website/docusaurus.config.js +++ b/website/docusaurus.config.js @@ -179,7 +179,7 @@ module.exports = { disableVersioning: isVersioningDisabled, lastVersion: isDev || isDeployPreview ? 'current' : undefined, onlyIncludeVersions: - isDev || isDeployPreview + !isVersioningDisabled && (isDev || isDeployPreview) ? ['current', ...versions.slice(0, 2)] : undefined, versions: {