This commit is contained in:
shimon
2025-05-12 20:25:34 +03:00
parent a431080069
commit 717436b118
-8
View File
@@ -91,14 +91,6 @@ function router(App $utopia, Database $dbForPlatform, callable $getProjectDB, Sw
throw new AppwriteException(AppwriteException::GENERAL_ACCESS_FORBIDDEN, 'This domain cannot be used for security reasons. Please use any subdomain instead.', view: $errorView);
}
var_dump([
'$host' => $host,
'$previewHostname' => $previewHostname,
'$appDomainFunctions' => $appDomainFunctions,
'$appDomainSites' => $appDomainSites,
]
);
if (\str_ends_with($host, $appDomainFunctions) || \str_ends_with($host, $appDomainSites)) {
$exception = new AppwriteException(AppwriteException::RULE_NOT_FOUND, 'This domain is not connected to any Appwrite resources. Visit domains tab under function/site settings to configure it.', view: $errorView);