mirror of
https://github.com/facebook/docusaurus.git
synced 2025-06-21 12:08:03 +02:00
fix(v2): logic error while deciding deploymentBranch (#3273)
This commit is contained in:
parent
0cc78fdd41
commit
7cc44823eb
1 changed files with 2 additions and 3 deletions
|
@ -66,9 +66,8 @@ export default async function deploy(
|
||||||
|
|
||||||
// github.io indicates organization repos that deploy via master. All others use gh-pages.
|
// github.io indicates organization repos that deploy via master. All others use gh-pages.
|
||||||
const deploymentBranch =
|
const deploymentBranch =
|
||||||
process.env.DEPLOYMENT_BRANCH || projectName.indexOf('.github.io') !== -1
|
process.env.DEPLOYMENT_BRANCH ||
|
||||||
? 'master'
|
(projectName.indexOf('.github.io') !== -1 ? 'master' : 'gh-pages');
|
||||||
: 'gh-pages';
|
|
||||||
const githubHost =
|
const githubHost =
|
||||||
process.env.GITHUB_HOST || siteConfig.githubHost || 'github.com';
|
process.env.GITHUB_HOST || siteConfig.githubHost || 'github.com';
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue