Fix domain generation

This commit is contained in:
Khushboo Verma
2025-02-17 18:12:29 +05:30
parent 28ef7da231
commit 2ea18c4761
2 changed files with 2 additions and 2 deletions
@@ -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,
]);
+1 -1
View File
@@ -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,
]);