Fix conditions for generateHtaccessFile

This commit is contained in:
Bad Manners 2024-12-03 22:48:01 -03:00
parent a914343ca1
commit 07495463e6

View file

@ -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.");