mirror of
https://github.com/appwrite/appwrite.git
synced 2026-05-26 13:51:13 +00:00
debug
This commit is contained in:
@@ -80,13 +80,6 @@ function router(App $utopia, Database $dbForPlatform, callable $getProjectDB, Sw
|
||||
|
||||
if ($rule->isEmpty()) {
|
||||
|
||||
var_dump([
|
||||
'$host' => $host,
|
||||
'$appDomainFunctions' => $appDomainFunctions,
|
||||
'$appDomainSites' => $appDomainSites,
|
||||
]
|
||||
);
|
||||
|
||||
$appDomainFunctionsFallback = System::getEnv('_APP_DOMAIN_FUNCTIONS_FALLBACK', '');
|
||||
$appDomainFunctions = System::getEnv('_APP_DOMAIN_FUNCTIONS', '');
|
||||
$appDomainSites = System::getEnv('_APP_DOMAIN_SITES', '');
|
||||
@@ -98,6 +91,14 @@ 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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user