diff --git a/cli/src/getDocusaurusConfig.ts b/cli/src/getDocusaurusConfig.ts index 0ebb0ac..3a92d3c 100644 --- a/cli/src/getDocusaurusConfig.ts +++ b/cli/src/getDocusaurusConfig.ts @@ -112,7 +112,7 @@ export default function getDocusaurusConfig({ ? `${gitRepoUrl}/edit/${config.gitSourceBranch ?? "master"}/` : undefined, // Omitting this variable entirely will disable edit links sidebarCollapsible: true, - sidebarPath: customSidebarsExists + sidebarPath: customSidebarExists ? "./src/sidebars.js" : undefined, }