refactor: use DEMO_TENANT_PORT env var for demo logic isolation
All checks were successful
Koori-ERP-Deploy-System / deploy-demo (push) Successful in 55s
Koori-ERP-Deploy-System / deploy-production (push) Has been skipped

This commit is contained in:
2026-01-16 09:28:29 +08:00
parent 231d1ad029
commit 32f993a6e1
4 changed files with 22 additions and 8 deletions

View File

@@ -20,6 +20,17 @@ return [
array_map('trim', explode(',', env('CENTRAL_DOMAINS', '127.0.0.1,localhost')))
),
/*
|--------------------------------------------------------------------------
| Demo Mode Tenant Port
|--------------------------------------------------------------------------
|
| If set, requests on this port will be treated as tenant requests
| regardless of the host domain. Useful for IP-based demo access.
|
*/
'demo_tenant_port' => env('DEMO_TENANT_PORT'),
/**
* Tenancy bootstrappers are executed when tenancy is initialized.
* Their responsibility is making Laravel features tenant-aware.