mirror of
https://github.com/appwrite/appwrite
synced 2026-05-23 17:08:45 +00:00
chore: small improvements
This commit is contained in:
parent
9788a126a8
commit
10b88ba194
2 changed files with 2 additions and 3 deletions
|
|
@ -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();
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -22,6 +22,7 @@ class Redirect extends Host
|
|||
public function __construct(array $hostnames = [], array $schemes = [])
|
||||
{
|
||||
$this->schemes = $schemes;
|
||||
$this->hostnames = $hostnames;
|
||||
parent::__construct($hostnames);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue