mirror of
https://github.com/appwrite/appwrite
synced 2026-05-24 09:28:40 +00:00
ai review fixes
This commit is contained in:
parent
fea4994ef0
commit
ce1bb3fd29
1 changed files with 6 additions and 1 deletions
|
|
@ -152,7 +152,12 @@ class Action extends PlatformAction
|
||||||
} elseif ($ruleType === 'redirect') {
|
} elseif ($ruleType === 'redirect') {
|
||||||
// Shouldn't be needed, because redirect should always have resourceTyp too, but just in case we default to sites
|
// Shouldn't be needed, because redirect should always have resourceTyp too, but just in case we default to sites
|
||||||
// For example: appwrite.network
|
// For example: appwrite.network
|
||||||
$targetCNAMEs[] = new Domain(System::getEnv('_APP_DOMAIN_SITES', ''));
|
foreach (\explode(',', System::getEnv('_APP_DOMAIN_SITES', '')) as $targetCNAME) {
|
||||||
|
if (empty($targetCNAME)) {
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
$targetCNAMEs[] = new Domain($targetCNAME);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
$validators = [];
|
$validators = [];
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue