// Generated configuration constants from environment variables
// This file is auto-generated - do not edit manually!

/// URL path for serving processed content
/// Generated from environment variable SITE_SERVER_CONTENT_URL
pub const SITE_SERVER_CONTENT_URL: &str = "/r";

/// Server-side content loading root directory
/// Generated from environment variable SITE_SERVER_ROOT_CONTENT
pub const SITE_SERVER_ROOT_CONTENT: &str = "r";

/// Server host address
/// Generated from environment variable SERVER_HOST
pub const SERVER_HOST: &str = "127.0.0.1";

/// Server port number
/// Generated from environment variable SERVER_PORT
pub const SERVER_PORT: &str = "3030";

/// Get server content URL for client-side fetching
pub fn get_server_content_url() -> &'static str {
    SITE_SERVER_CONTENT_URL
}

/// Get server content root for server-side access
pub fn get_server_root_content() -> &'static str {
    SITE_SERVER_ROOT_CONTENT
}

/// Get full server URL for absolute client-side fetching
pub fn get_server_base_url() -> String {
    format!("http://{}:{}", SERVER_HOST, SERVER_PORT)
}

/// Get full server content URL for absolute client-side fetching
pub fn get_full_server_content_url() -> String {
    format!("{}{}", get_server_base_url(), SITE_SERVER_CONTENT_URL)
}
