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

@@ -1,4 +1,5 @@
### HEAD
* Auto-detect `proxyUrl` scheme ([#2062](https://github.com/roots/sage/pull/2062))
* Bump to Laravel 5.6 ([#2061](https://github.com/roots/sage/pull/2061))
* Update to Boostrap 4.1.0 ([#2056](https://github.com/roots/sage/pull/2056))
* Change inline `@php` directive to full form ([#2042](https://github.com/roots/sage/pull/2042))

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 = {