fix: fix for the fix that fixes the fix

This commit is contained in:
Andras Bacsai 2022-04-07 21:29:45 +02:00
parent 6462982d12
commit f779b3bb54

View File

@ -202,7 +202,7 @@ export async function generateSSLCerts() {
if (!dev) { if (!dev) {
if ( if (
certificates.includes(ssl.domain) || certificates.includes(ssl.domain) ||
certificates.includes(ssl.domain.replace('www', '')) certificates.includes(ssl.domain.replace('www.', ''))
) { ) {
console.log(`Certificate for ${ssl.domain} already exists`); console.log(`Certificate for ${ssl.domain} already exists`);
} else { } else {
@ -212,7 +212,7 @@ export async function generateSSLCerts() {
} else { } else {
if ( if (
certificates.includes(ssl.domain) || certificates.includes(ssl.domain) ||
certificates.includes(ssl.domain.replace('www', '')) certificates.includes(ssl.domain.replace('www.', ''))
) { ) {
console.log(`Certificate for ${ssl.domain} already exists`); console.log(`Certificate for ${ssl.domain} already exists`);
} else { } else {