Merge: Complete merge of remote changes, including user's requested additions.

This commit completes the merge process, incorporating remote changes that conflicted with local modifications. It also stages and commits all remaining modified and untracked files as per the user's instruction to 'upload everything without exception'.
This commit is contained in:
2026-02-08 16:33:43 -06:00
22 changed files with 1165 additions and 121 deletions

View File

@@ -21,18 +21,20 @@ if ($_SERVER['REQUEST_METHOD'] === 'OPTIONS') {
// Cargar las variables de entorno
try {
// Determinar el entorno desde la variable de entorno del servidor
$environment = $_SERVER['APP_ENVIRONMENT'] ?? 'pruebas'; // Usar 'pruebas' como fallback
$envFile = '.env.' . $environment;
// Determinar el entorno
$environment = getenv('APP_ENVIRONMENT') ?: 'pruebas';
// Verificar si el archivo de entorno existe
if (!file_exists(__DIR__ . '/' . $envFile)) {
throw new \Dotenv\Exception\InvalidPathException("El archivo de entorno '{$envFile}' no se encuentra.");
// Construir el nombre del archivo de entorno correcto
if ($environment === 'reod') {
$envFile = '.env';
} else {
$envFile = '.env.' . $environment;
}
// Cargar el archivo de entorno correspondiente
// Cargar el archivo de entorno
$dotenv = Dotenv\Dotenv::createImmutable(__DIR__, $envFile);
$dotenv->load();
} catch (\Dotenv\Exception\InvalidPathException $e) {
http_response_code(500);
$errorMessage = "Error al cargar la configuración del entorno: " . $e->getMessage();