mirror of
https://github.com/appwrite/appwrite.git
synced 2026-05-26 13:51:13 +00:00
Fix domain generation
This commit is contained in:
@@ -266,7 +266,7 @@ trait FunctionsBase
|
||||
'content-type' => 'application/json',
|
||||
'x-appwrite-project' => $this->getProject()['$id'],
|
||||
], $this->getHeaders()), [
|
||||
'domain' => $subdomain . System::getEnv('_APP_DOMAIN_FUNCTIONS', ''),
|
||||
'domain' => $subdomain . '.' . System::getEnv('_APP_DOMAIN_FUNCTIONS', ''),
|
||||
'resourceType' => 'function',
|
||||
'resourceId' => $functionId,
|
||||
]);
|
||||
|
||||
@@ -276,7 +276,7 @@ trait SitesBase
|
||||
'content-type' => 'application/json',
|
||||
'x-appwrite-project' => $this->getProject()['$id'],
|
||||
], $this->getHeaders()), [
|
||||
'domain' => $subdomain . System::getEnv('_APP_DOMAIN_SITES', ''),
|
||||
'domain' => $subdomain . '.' . System::getEnv('_APP_DOMAIN_SITES', ''),
|
||||
'resourceType' => 'site',
|
||||
'resourceId' => $siteId,
|
||||
]);
|
||||
|
||||
Reference in New Issue
Block a user