fix(komik): use komiku.org instead of dead api.komiku.org root
Deploy Scraper / build-and-deploy (push) Canceled after 0s

api.komiku.org returns an empty body for its root path, which broke the
komik genre-list endpoint (it fetches the api root and parsed 0 genres).
komiku.org serves identical sub-path content (manga lists, genre, search)
plus a populated root. Consolidate the komik module onto the canonical
working domain. KOMIK2_API_URL env override still honoured.
This commit is contained in:
asepharyana
2026-08-31 20:25:56 +07:00
parent 6bfffa5364
commit a46adf1ce9
+7 -1
View File
@@ -20,8 +20,14 @@ pub fn get_production_url() -> String {
} }
/// Get Komik API URL from environment config. /// Get Komik API URL from environment config.
///
/// Defaults to `https://komiku.org` (NOT the legacy `api.komiku.org`): the
/// `api.komiku.org` root returns an empty body (site-side), which broke the
/// komik genre-list endpoint. `komiku.org` serves identical sub-path content
/// (manga lists, genre, search) plus a populated root, so the module is
/// consolidated onto the canonical, working domain.
pub fn get_komik_api_url() -> String { pub fn get_komik_api_url() -> String {
env::var("KOMIK2_API_URL").unwrap_or_else(|_| "https://api.komiku.org".to_string()) env::var("KOMIK2_API_URL").unwrap_or_else(|_| "https://komiku.org".to_string())
} }
/// Get Otakudesu URL from environment config. /// Get Otakudesu URL from environment config.