Skip to content

Commit

Permalink
fix: use s3.host
Browse files Browse the repository at this point in the history
  • Loading branch information
jdx committed Feb 13, 2018
1 parent 07463cb commit 02a0e66
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
4 changes: 3 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,9 @@
"license": "MIT",
"oclif": {
"bin": "heroku",
"s3Host": "cli-assets.heroku.com",
"s3": {
"host": "cli-assets.heroku.com"
},
"commands": "./lib/commands",
"hooks": {
"init": "./lib/hooks/init"
Expand Down
3 changes: 2 additions & 1 deletion src/update.ts
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,8 @@ export class Updater {
}

private get s3Host(): string | undefined {
return (this.config.pjson.oclif as any).s3Host || this.config.scopedEnvVar('S3_HOST')
const pjson = this.config.pjson.oclif as any
return (pjson.s3 && pjson.s3.host) || this.config.scopedEnvVar('S3_HOST')
}

s3url(channel: string, p: string): string {
Expand Down

0 comments on commit 02a0e66

Please sign in to comment.