We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e2d0496 commit 4b8238cCopy full SHA for 4b8238c
browser-sync.cjs
@@ -2,6 +2,7 @@
2
let docroot = process.env.DDEV_DOCROOT;
3
let filesdir = process.env.DDEV_FILES_DIR;
4
let url = process.env.DDEV_HOSTNAME;
5
+let nonSslUrl = process.env.DDEV_PRIMARY_URL.replace( /^https:/, 'http:' )
6
7
if (filesdir === "") {
8
filesdir = null
@@ -15,7 +16,7 @@ module.exports = {
15
16
ui: false,
17
server: false,
18
proxy: {
- target: "localhost"
19
+ target: nonSslUrl
20
},
21
host: url,
22
}
0 commit comments