12 lines
No EOL
412 B
PHP
12 lines
No EOL
412 B
PHP
<?php
|
|
// backend/test_config.php - Debug endpoint to check configuration
|
|
|
|
require_once __DIR__ . '/config.php';
|
|
|
|
echo json_encode([
|
|
'status' => 'ok',
|
|
'runway_api_key_defined' => defined('RUNWAY_API_KEY'),
|
|
'runway_api_key_empty' => empty(RUNWAY_API_KEY),
|
|
'runway_api_key_length' => defined('RUNWAY_API_KEY') ? strlen(RUNWAY_API_KEY) : 0,
|
|
'env_file_exists' => file_exists(__DIR__ . '/.env')
|
|
]); |