From 68f450ed0724c6485929f00e2aeef14d0d2ef229 Mon Sep 17 00:00:00 2001 From: Matthieu Napoli Date: Sun, 2 Aug 2026 19:33:56 +0200 Subject: [PATCH 1/2] Allow targeting the sandbox environment with BREF_ENV=sandbox `sandbox.bref.cloud` is a production-equivalent Bref Cloud environment running in a throwaway AWS account, used to test Bref Cloud itself end to end. Deploying an app to it requires the CLI to point at it, and until now `BREF_ENV` only knew about production, staging and a local server. Claude-Session: https://claude.ai/code/session_01MQodrVpnz3zu5A2QC91muX --- src/BrefCloudClient.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/BrefCloudClient.php b/src/BrefCloudClient.php index 7ecf931..c77d589 100644 --- a/src/BrefCloudClient.php +++ b/src/BrefCloudClient.php @@ -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 = [ @@ -59,6 +60,8 @@ public static function getUrl(): string $env = $_SERVER['BREF_ENV'] ?? 'prod'; return match($env) { 'staging' => self::STAGING_URL, + // Throwaway environment the Bref team uses to test Bref Cloud itself + 'sandbox' => self::SANDBOX_URL, 'local' => self::LOCAL_URL, default => self::PRODUCTION_URL, }; From 2886081095b268fc8df7fac355d0f5061c878322 Mon Sep 17 00:00:00 2001 From: Matthieu Napoli Date: Sun, 2 Aug 2026 20:42:25 +0200 Subject: [PATCH 2/2] Update Removed comment about the sandbox environment. --- src/BrefCloudClient.php | 1 - 1 file changed, 1 deletion(-) diff --git a/src/BrefCloudClient.php b/src/BrefCloudClient.php index c77d589..3400050 100644 --- a/src/BrefCloudClient.php +++ b/src/BrefCloudClient.php @@ -60,7 +60,6 @@ public static function getUrl(): string $env = $_SERVER['BREF_ENV'] ?? 'prod'; return match($env) { 'staging' => self::STAGING_URL, - // Throwaway environment the Bref team uses to test Bref Cloud itself 'sandbox' => self::SANDBOX_URL, 'local' => self::LOCAL_URL, default => self::PRODUCTION_URL,