Created
January 25, 2024 03:07
-
-
Save wont-stream/4c535c9bcc9dbac613add9235903a53a to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const domainName = "server"; | |
let mkcertCMD = "mkcert localhost 127.0.0.1 ::1"; | |
`.local | |
.localdomain | |
.domain | |
.lan | |
.home | |
.host | |
.corp | |
.test | |
.example | |
.invalid | |
.localhost`.split("\n").forEach(tld => { | |
mkcertCMD += ` "*.${domainName}${tld}" ${domainName}${tld}` | |
}); | |
console.log(mkcertCMD); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment