diff --git a/packages/docusaurus-utils/src/lastUpdateUtils.ts b/packages/docusaurus-utils/src/lastUpdateUtils.ts index 7c23272a76..b9a05676e9 100644 --- a/packages/docusaurus-utils/src/lastUpdateUtils.ts +++ b/packages/docusaurus-utils/src/lastUpdateUtils.ts @@ -116,14 +116,14 @@ export async function readLastUpdateData( filePath: string, options: LastUpdateOptions, lastUpdateFrontMatter: FrontMatterLastUpdate | undefined, - vcs: Pick, + vcsParam: Pick, ): Promise { // We fallback to the default VSC config at runtime on purpose // It preserves retro-compatibility if a third-party plugin imports it // This also ensures unit tests keep working without extra setup // We still want to ensure type safety by requiring the VCS param // TODO Docusaurus v4: refactor all these Git read APIs - vcs = vcs ?? DEFAULT_VCS_CONFIG; + const vcs = vcsParam ?? DEFAULT_VCS_CONFIG; const {showLastUpdateAuthor, showLastUpdateTime} = options;