vite-plugin-caddy-multiple-tls 0.0.1 → 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +7 -0
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -438,6 +438,13 @@ function viteCaddyTlsPlugin({
|
|
|
438
438
|
domainArray.forEach((domain2) => {
|
|
439
439
|
console.log(chalk.blue(`\u{1F30D} https://${domain2}`));
|
|
440
440
|
});
|
|
441
|
+
if (process.platform === "linux") {
|
|
442
|
+
console.log();
|
|
443
|
+
console.log(chalk.yellow("\u{1F427} Linux users: if the domain doesn't resolve, run:"));
|
|
444
|
+
domainArray.forEach((domain2) => {
|
|
445
|
+
console.log(chalk.dim(` echo "127.0.0.1 ${domain2}" | sudo tee -a /etc/hosts`));
|
|
446
|
+
});
|
|
447
|
+
}
|
|
441
448
|
console.log();
|
|
442
449
|
registerProcessCleanup();
|
|
443
450
|
httpServer?.once("close", onServerClose);
|