File tree Expand file tree Collapse file tree 2 files changed +5
-3
lines changed
packages/docusaurus/src/commands Expand file tree Collapse file tree 2 files changed +5
-3
lines changed Original file line number Diff line number Diff line change 7
7
- Convert sitemap plugin to TypeScript.
8
8
- Significantly reduce main bundle size and initial HTML payload on production build. Generated JS files from webpack is also shorter in name.
9
9
- Refactor dark toggle into a hook.
10
+ - Changed the way we read the ` USE_SSH ` env variable during deployment to be the same as in v1.
10
11
11
12
## 2.0.0-alpha.31
12
13
Original file line number Diff line number Diff line change @@ -67,9 +67,10 @@ export async function deploy(siteDir: string): Promise<void> {
67
67
process . env . GITHUB_HOST || siteConfig . githubHost || 'github.com' ;
68
68
69
69
const useSSH = process . env . USE_SSH ;
70
- const remoteBranch = useSSH
71
- ? `git@${ githubHost } :${ organizationName } /${ projectName } .git`
72
- : `https://${ gitUser } @${ githubHost } /${ organizationName } /${ projectName } .git` ;
70
+ const remoteBranch =
71
+ useSSH && useSSH . toLowerCase ( ) === 'true'
72
+ ? `git@${ githubHost } :${ organizationName } /${ projectName } .git`
73
+ : `https://${ gitUser } @${ githubHost } /${ organizationName } /${ projectName } .git` ;
73
74
74
75
// Check if this is a cross-repo publish
75
76
const currentRepoUrl = shell
You can’t perform that action at this time.
0 commit comments