Skip to content

Commit

Permalink
Fixes this.options vs options in serve
Browse files Browse the repository at this point in the history
  • Loading branch information
abeisgoat committed May 10, 2019
1 parent 911a609 commit c378b3d
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/serve/functions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,11 +24,11 @@ module.exports = {
// If hosting emulator is not being served but Functions is,
// we can use the port argument. Otherwise it goes to hosting and
// we use port + 1.
if (this.options.port) {
if (this.options.targets && this.options.targets.indexOf("hosting") < 0) {
args.port = this.options.port;
if (options.port) {
if (options.targets && options.targets.indexOf("hosting") < 0) {
args.port = options.port;
} else {
args.port = this.options.port + 1;
args.port = options.port + 1;
}
}

Expand Down

0 comments on commit c378b3d

Please sign in to comment.