mirror of
https://github.com/appwrite/appwrite.git
synced 2026-05-26 13:51:13 +00:00
chore: fix empty schemes
This commit is contained in:
@@ -1221,6 +1221,8 @@ App::setResource('hostnames', function (array $platforms) {
|
||||
return \array_unique($hostnames);
|
||||
}, ['platforms']);
|
||||
App::setResource('schemes', function (array $platforms, Document $project) {
|
||||
$schemes = [];
|
||||
|
||||
// Allow `appwrite-callback-${projectId}` scheme by default
|
||||
if (!empty($project) && $project->getId() !== 'console') {
|
||||
$schemes[] = 'exp';
|
||||
|
||||
Reference in New Issue
Block a user