Auto-detect scheme

This commit is contained in:
Ben Word
2018-04-25 15:37:28 -06:00
parent 571c49f698
commit 922ed72ad9
2 changed files with 3 additions and 0 deletions

View File

@@ -11,6 +11,8 @@ const target = process.env.DEVURL || config.devUrl;
*/
if (url.parse(target).protocol === 'https:') {
process.env.NODE_TLS_REJECT_UNAUTHORIZED = 0;
config.proxyUrl = config.proxyUrl.replace('http:', 'https:');
}
module.exports = {