Spaces:
Runtime error
Runtime error
File size: 809 Bytes
9aaec2c | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 | /**
* ChefCode Frontend Configuration
* ⚠️ SECURITY WARNING: This file contains sensitive API credentials
*
* For Production:
* - DO NOT commit this file to git (add to .gitignore)
* - Use environment variables or secure key management
* - Implement proper authentication (login/session-based)
* - Consider using a backend proxy to hide API keys
*/
const CHEFCODE_CONFIG = {
// Backend API URL
API_URL: 'http://localhost:8000',
// ⚠️ SECURITY: API Key should NOT be in frontend code in production
// This is only for local development/demo
// In production, use session-based auth or backend proxy
API_KEY: 'chefcode-secret-key-2024'
};
// Make available globally for non-module scripts
if (typeof window !== 'undefined') {
window.CHEFCODE_CONFIG = CHEFCODE_CONFIG;
}
|