Skip to content
This repository was archived by the owner on Feb 7, 2020. It is now read-only.

Commit 6b5e0dc

Browse files
Merge pull request #171 from quangv/master
BROWSER=none don't open browser after publish
2 parents 7869de2 + a99867f commit 6b5e0dc

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

lib/command-publish.js

+3-1
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,9 @@ function onPublishComplete(err)
169169
console.log("Successful!")
170170
console.log("your application is published and hosted at:")
171171
console.log(chalk.green(_hostingInfo.hostingSiteUrl))
172-
opn(_hostingInfo.hostingSiteUrl, {wait: false})
172+
if(process.env.BROWSER !== 'none'){
173+
opn(_hostingInfo.hostingSiteUrl, {wait: false})
174+
}
173175
refreshCloudFront()
174176
})
175177
}

0 commit comments

Comments
 (0)