Skip to content

Commit

Permalink
add deprecation comment for loadContext.baseUrl in favor of loadConte…
Browse files Browse the repository at this point in the history
…xt.siteConfig.baseUrl
  • Loading branch information
slorber committed Jun 29, 2021
1 parent 9b0a755 commit abea2ad
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/docusaurus-types/src/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,7 @@ export interface LoadContext {
siteConfig: DocusaurusConfig;
siteConfigPath: string;
outDir: string;
baseUrl: string;
baseUrl: string; // TODO to remove: useless, there's already siteConfig.baseUrl!
i18n: I18n;
ssrTemplate?: string;
codeTranslations: Record<string, string>;
Expand Down
2 changes: 1 addition & 1 deletion packages/docusaurus/src/server/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ export async function loadContext(
siteConfig,
siteConfigPath,
outDir,
baseUrl,
baseUrl, // TODO to remove: useless, there's already siteConfig.baseUrl! (and yes, it's the same value, cf code above)
i18n,
ssrTemplate,
codeTranslations,
Expand Down

0 comments on commit abea2ad

Please sign in to comment.