Fix conditions for generateHtaccessFile
This commit is contained in:
parent
a914343ca1
commit
07495463e6
1 changed files with 4 additions and 4 deletions
|
@ -51,8 +51,8 @@ export const integration = ({ generateHtaccessFile, errorPages, redirects, custo
|
||||||
generateHtaccessFile === undefined
|
generateHtaccessFile === undefined
|
||||||
? true
|
? true
|
||||||
: typeof generateHtaccessFile === "function"
|
: typeof generateHtaccessFile === "function"
|
||||||
? !(await generateHtaccessFile())
|
? (await generateHtaccessFile())
|
||||||
: !generateHtaccessFile;
|
: generateHtaccessFile;
|
||||||
}
|
}
|
||||||
if (!enabled) {
|
if (!enabled) {
|
||||||
logger.debug("generateHtaccessFile evaluated to false; skipping integration config.");
|
logger.debug("generateHtaccessFile evaluated to false; skipping integration config.");
|
||||||
|
@ -78,8 +78,8 @@ export const integration = ({ generateHtaccessFile, errorPages, redirects, custo
|
||||||
generateHtaccessFile === undefined
|
generateHtaccessFile === undefined
|
||||||
? true
|
? true
|
||||||
: typeof generateHtaccessFile === "function"
|
: typeof generateHtaccessFile === "function"
|
||||||
? !(await generateHtaccessFile())
|
? (await generateHtaccessFile())
|
||||||
: !generateHtaccessFile;
|
: generateHtaccessFile;
|
||||||
}
|
}
|
||||||
if (!enabled) {
|
if (!enabled) {
|
||||||
logger.debug("generateHtaccessFile evaluated to false; skipping .htaccess generation.");
|
logger.debug("generateHtaccessFile evaluated to false; skipping .htaccess generation.");
|
||||||
|
|
Loading…
Reference in a new issue