🐛 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
19
bs-config.js
19
bs-config.js
|
@ -12,12 +12,22 @@
|
|||
|
|
||||
*/
|
||||
|
||||
const os = require("os");
|
||||
|
||||
const domain = "saudade.test";
|
||||
const homedir = require("os").homedir();
|
||||
const homedir = os.homedir();
|
||||
const certdir =
|
||||
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: {
|
||||
port: 3001,
|
||||
},
|
||||
|
@ -110,4 +120,7 @@ module.exports = {
|
|||
key: certdir + domain + ".key",
|
||||
cert: certdir + domain + ".crt",
|
||||
},
|
||||
};
|
||||
};
|
||||
}
|
||||
|
||||
module.exports = config;
|
||||
|
|
Loading…
Reference in a new issue