🐛 fix(gulp): Only check for cert files on macOS

This commit is contained in:
punkfairie 2024-03-16 14:32:01 -07:00
parent f58cde5916
commit cbd1c59758
Signed by: punkfairie
GPG key ID: A86AF57F837E320F

View file

@ -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;