c0de.it 2
All checks were successful
Deploy / deploy (push) Successful in 16s

This commit is contained in:
2026-05-15 22:46:38 +02:00
parent 752d33e38a
commit d914a660d8
7 changed files with 41 additions and 15 deletions

View File

@@ -1,8 +1,6 @@
<?php
declare(strict_types=1);
require_once __DIR__ . '/domaindata.php';
$host = $_SERVER['HTTP_HOST'] ?? '';
$isCli = PHP_SAPI === 'cli';
$isStagingHost = is_string($host) && str_starts_with($host, 'staging.');
@@ -10,4 +8,3 @@ $isStagingHost = is_string($host) && str_starts_with($host, 'staging.');
$envDir = $isStagingHost ? __DIR__ . '/staging' : __DIR__ . '/prod';
require_once $envDir . '/config.php';