🐛 fix(gulp): Only check for cert files on macOS
This commit is contained in:
parent
f58cde5916
commit
cbd1c59758
1 changed files with 104 additions and 91 deletions
17
bs-config.js
17
bs-config.js
|
@ -12,12 +12,22 @@
|
||||||
|
|
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
const os = require("os");
|
||||||
|
|
||||||
const domain = "saudade.test";
|
const domain = "saudade.test";
|
||||||
const homedir = require("os").homedir();
|
const homedir = os.homedir();
|
||||||
const certdir =
|
const certdir =
|
||||||
homedir + "/Library/Application Support/Herd/config/valet/Certificates/";
|
homedir + "/Library/Application Support/Herd/config/valet/Certificates/";
|
||||||
|
|
||||||
module.exports = {
|
let config;
|
||||||
|
|
||||||
|
if (os.type() !== "Darwin") {
|
||||||
|
config = {
|
||||||
|
proxy: "http://" + domain,
|
||||||
|
host: domain,
|
||||||
|
};
|
||||||
|
} else {
|
||||||
|
config = {
|
||||||
ui: {
|
ui: {
|
||||||
port: 3001,
|
port: 3001,
|
||||||
},
|
},
|
||||||
|
@ -111,3 +121,6 @@ module.exports = {
|
||||||
cert: certdir + domain + ".crt",
|
cert: certdir + domain + ".crt",
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
}
|
||||||
|
|
||||||
|
module.exports = config;
|
||||||
|
|
Loading…
Reference in a new issue