mirror of
https://github.com/appwrite/appwrite
synced 2026-05-22 16:38:32 +00:00
endpoint fallback
This commit is contained in:
parent
6fbacb484b
commit
1c165b8c8d
1 changed files with 1 additions and 1 deletions
|
|
@ -153,7 +153,7 @@ class Migrations extends Action
|
|||
$database = null;
|
||||
$queries = [];
|
||||
|
||||
if ($credentials['endpoint'] === 'http://localhost/v1') {
|
||||
if (($credentials['endpoint'] ?? null) === 'http://localhost/v1') {
|
||||
$platform = Config::getParam('platform', []);
|
||||
$protocol = System::getEnv('_APP_OPTIONS_FORCE_HTTPS') === 'disabled' ? 'http' : 'https';
|
||||
$credentials['endpoint'] = $protocol . '://' . $platform['apiHostname'] . '/v1';
|
||||
|
|
|
|||
Loading…
Reference in a new issue