Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions src/BrefCloudClient.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ class BrefCloudClient
{
private const PRODUCTION_URL = 'https://bref.cloud';
private const STAGING_URL = 'https://staging.bref.cloud';
private const SANDBOX_URL = 'https://sandbox.bref.cloud';
private const LOCAL_URL = 'http://localhost:8000';

public const AWS_REGIONS = [
Expand Down Expand Up @@ -59,6 +60,7 @@ public static function getUrl(): string
$env = $_SERVER['BREF_ENV'] ?? 'prod';
return match($env) {
'staging' => self::STAGING_URL,
'sandbox' => self::SANDBOX_URL,
'local' => self::LOCAL_URL,
default => self::PRODUCTION_URL,
};
Expand Down