Skip to content

Commit

Permalink
fix(core): allow githubPort in config validation (#7360)
Browse files Browse the repository at this point in the history
* Update configValidation.ts

Proposed fix for #7359

* add test case

Co-authored-by: Joshua Chen <[email protected]>
  • Loading branch information
mhughes2k and Josh-Cena authored May 7, 2022
1 parent e32ff04 commit 204b9a3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ describe('normalizeConfig', () => {
organizationName: 'facebook',
projectName: 'docusaurus',
githubHost: 'github.com',
githubPort: '8000',
customFields: {
myCustomField: '42',
},
Expand Down
1 change: 1 addition & 0 deletions packages/docusaurus/src/server/configValidation.ts
Original file line number Diff line number Diff line change
Expand Up @@ -185,6 +185,7 @@ export const ConfigSchema = Joi.object({
deploymentBranch: Joi.string().optional(),
customFields: Joi.object().unknown().default(DEFAULT_CONFIG.customFields),
githubHost: Joi.string(),
githubPort: Joi.string(),
plugins: Joi.array().items(PluginSchema).default(DEFAULT_CONFIG.plugins),
themes: Joi.array().items(ThemeSchema).default(DEFAULT_CONFIG.themes),
presets: Joi.array().items(PresetSchema).default(DEFAULT_CONFIG.presets),
Expand Down

0 comments on commit 204b9a3

Please sign in to comment.