From 07495463e6ea05d8f32292aa73b7c9b34565876a Mon Sep 17 00:00:00 2001 From: Bad Manners Date: Tue, 3 Dec 2024 22:48:01 -0300 Subject: [PATCH] Fix conditions for generateHtaccessFile --- src/htaccess.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/htaccess.ts b/src/htaccess.ts index 83bd574..e402097 100644 --- a/src/htaccess.ts +++ b/src/htaccess.ts @@ -51,8 +51,8 @@ export const integration = ({ generateHtaccessFile, errorPages, redirects, custo generateHtaccessFile === undefined ? true : typeof generateHtaccessFile === "function" - ? !(await generateHtaccessFile()) - : !generateHtaccessFile; + ? (await generateHtaccessFile()) + : generateHtaccessFile; } if (!enabled) { logger.debug("generateHtaccessFile evaluated to false; skipping integration config."); @@ -78,8 +78,8 @@ export const integration = ({ generateHtaccessFile, errorPages, redirects, custo generateHtaccessFile === undefined ? true : typeof generateHtaccessFile === "function" - ? !(await generateHtaccessFile()) - : !generateHtaccessFile; + ? (await generateHtaccessFile()) + : generateHtaccessFile; } if (!enabled) { logger.debug("generateHtaccessFile evaluated to false; skipping .htaccess generation.");