From 2fcc84c3c71fabaecaf183a892b3a06ac74389e4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cau=C3=AA=20Faleiros?= Date: Tue, 3 Feb 2026 16:16:39 -0300 Subject: [PATCH] config: Add staging domain to central_domains and support env var --- config/tenancy.php | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) diff --git a/config/tenancy.php b/config/tenancy.php index bca00ca..0e194b5 100644 --- a/config/tenancy.php +++ b/config/tenancy.php @@ -16,12 +16,16 @@ return [ * * Only relevant if you're using the domain or subdomain identification middleware. */ - 'central_domains' => [ - '127.0.0.1', - 'localhost', - 'localhost:8000', - 'growuppro.com.br', - ], + 'central_domains' => array_filter(array_merge( + explode(',', env('CENTRAL_DOMAINS', '')), + [ + '127.0.0.1', + 'localhost', + 'localhost:8000', + 'growuppro.com.br', + 'staging.growuppro.com.br', + ] + )), /** * Tenancy bootstrappers are executed when tenancy is initialized.