Skip to content

Commit

Permalink
Fallback to use same papi host as terminus host if sandbox. (#58)
Browse files Browse the repository at this point in the history
  • Loading branch information
kporras07 authored Jul 15, 2024
1 parent 8f4e7e9 commit 418ea02
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/SecretsApi/SecretsApi.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,9 @@ private function getBaseURI()
if (!$host && strpos($config->get('host'), 'hermes.sandbox-') !== false) {
$host = str_replace('hermes', 'pantheonapi', $config->get('host'));
}
if (!$host && strpos($config->get('host'), 'sandbox-') !== false) {
$host = $config->get('host');
}
// If host is still not set, use the default host.
if (!$host) {
$host = 'api.pantheon.io';
Expand Down

0 comments on commit 418ea02

Please sign in to comment.