/**
 * Frontend Configuration
 * Auto-generated from PHP config
 */

// Base URL path - Change in config/config.php
const APP_CONFIG = {
    urlPath: '<?php echo defined("URL_PATH") ? URL_PATH : "/birthday_reminder"; ?>',
    baseUrl: '<?php echo defined("BASE_URL") ? BASE_URL : "http://localhost/birthday_reminder"; ?>',
    publicUrl: '<?php echo defined("PUBLIC_URL") ? PUBLIC_URL : "http://localhost/birthday_reminder/public"; ?>'
};

// Helper function to build URLs
function buildUrl(path) {
    // Remove leading slash if present
    path = path.replace(/^\//, '');
    return APP_CONFIG.urlPath + '/' + path;
}

// Export for use in other scripts
if (typeof module !== 'undefined' && module.exports) {
    module.exports = APP_CONFIG;
}
