From f779b3bb5421a65c70c700f5ebdd4d037f5a6af2 Mon Sep 17 00:00:00 2001 From: Andras Bacsai Date: Thu, 7 Apr 2022 21:29:45 +0200 Subject: [PATCH] fix: fix for the fix that fixes the fix --- src/lib/letsencrypt/index.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/lib/letsencrypt/index.ts b/src/lib/letsencrypt/index.ts index 12b527890..fb1fa46ac 100644 --- a/src/lib/letsencrypt/index.ts +++ b/src/lib/letsencrypt/index.ts @@ -202,7 +202,7 @@ export async function generateSSLCerts() { if (!dev) { if ( certificates.includes(ssl.domain) || - certificates.includes(ssl.domain.replace('www', '')) + certificates.includes(ssl.domain.replace('www.', '')) ) { console.log(`Certificate for ${ssl.domain} already exists`); } else { @@ -212,7 +212,7 @@ export async function generateSSLCerts() { } else { if ( certificates.includes(ssl.domain) || - certificates.includes(ssl.domain.replace('www', '')) + certificates.includes(ssl.domain.replace('www.', '')) ) { console.log(`Certificate for ${ssl.domain} already exists`); } else {