Skip to main content

get_spa_fallback

Function get_spa_fallback 

Source
pub fn get_spa_fallback() -> Option<String>
Expand description

The configured SPA-fallback file (e.g. "index.html"), or None if RWS_CONFIG_SPA_FALLBACK is unset/empty (the default — disabled). Read fresh on every call, so it can be toggled via rws.config.toml + SIGHUP without a restart, the same as get_max_body_size.