You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
throwError(`Unable to find certificate files for your host [${host}] in the [${configPath}/Certificates] directory. Ensure you have secured the site via the Herd UI or run \`valet secure\`.`)
547
+
if(host===null){
548
+
return
549
+
}
550
+
551
+
if(configPath===herdConfigPath()){
552
+
throwError(`Unable to find certificate files for your host [${resolvedHost}] in the [${configPath}/Certificates] directory. Ensure you have secured the site via the Herd UI.`)
553
+
}elseif(typeofhost==='string'){
554
+
throwError(`Unable to find certificate files for your host [${resolvedHost}] in the [${configPath}/Certificates] directory. Ensure you have secured the site by running \`valet secure ${host}\`.`)
555
+
}else{
556
+
throwError(`Unable to find certificate files for your host [${resolvedHost}] in the [${configPath}/Certificates] directory. Ensure you have secured the site by running \`valet secure\`.`)
557
+
}
528
558
}
529
559
530
560
return{
531
-
hmr: { host },
532
-
host,
561
+
hmr: {host: resolvedHost},
562
+
host: resolvedHost,
533
563
https: {
534
-
key: fs.readFileSync(keyPath),
535
-
cert: fs.readFileSync(certPath),
564
+
key: keyPath,
565
+
cert: certPath,
536
566
},
537
567
}
538
568
}
539
569
540
570
/**
541
571
* Resolve the path to the Herd or Valet configuration directory.
throwError(`Unable to find the configuration file [${configFile}]. You will need to manually specify the host in the \`detectTls\` configuration option.`)
590
+
throwError(`Unable to find the configuration file [${configFile}].`)
0 commit comments