code it los
All checks were successful
Deploy / deploy (push) Successful in 15s

This commit is contained in:
2026-05-15 22:27:49 +02:00
parent 98dd388fda
commit 752d33e38a
13 changed files with 1577 additions and 4 deletions

13
config/config.php Normal file
View File

@@ -0,0 +1,13 @@
<?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.');
$envDir = $isStagingHost ? __DIR__ . '/staging' : __DIR__ . '/prod';
require_once $envDir . '/config.php';