fix(env): lock production hostnames to live environment and live database

This commit is contained in:
2026-10-05 10:39:17 +02:00
parent dc6b55e4f9
commit 0c466972c2
3 changed files with 43 additions and 28 deletions
+1 -5
View File
@@ -14,13 +14,9 @@
require_once __DIR__ . '/../config/config.php';
// Standaard waarde voor de main branch: 'live' (kan overschreven worden via APP_ENV)
// Standaard waarde voor de main branch: 'live' (bepaald via centrale config.php)
$environment = defined('APP_ENV') ? APP_ENV : 'live';
if (function_exists('fociz_env') && fociz_env('APP_ENV')) {
$environment = fociz_env('APP_ENV');
}
$isLive = in_array(strtolower(trim($environment)), ['live', 'production', 'prod', 'main']);
?>