chore: small improvements

This commit is contained in:
loks0n 2025-02-07 10:38:36 +00:00
parent 9788a126a8
commit 10b88ba194
2 changed files with 2 additions and 3 deletions

View file

@ -1221,11 +1221,9 @@ App::setResource('hostnames', function (array $platforms) {
return \array_unique($hostnames);
}, ['platforms']);
App::setResource('schemes', function (array $platforms, Document $project) {
// Allow expo development scheme by default
$schemes = ['exp'];
// Allow `appwrite-callback-${projectId}` scheme by default
if (!empty($project) && $project->getId() !== 'console') {
$schemes[] = 'exp';
$schemes[] = 'appwrite-callback-' . $project->getId();
}

View file

@ -22,6 +22,7 @@ class Redirect extends Host
public function __construct(array $hostnames = [], array $schemes = [])
{
$this->schemes = $schemes;
$this->hostnames = $hostnames;
parent::__construct($hostnames);
}