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