feat: enhance configuration fetching and implement retry logic for API requests

This commit is contained in:
Linus Rath
2026-03-15 00:21:59 +01:00
parent caed067cda
commit 8c5e3ee240
2 changed files with 30 additions and 17 deletions
+1 -1
View File
@@ -29,7 +29,7 @@ interface AppConfig extends ConfigData {
let configCache: ConfigData | null = null;
let configPromise: Promise<ConfigData> | null = null;
async function fetchConfig(): Promise<ConfigData> {
export async function fetchConfig(): Promise<ConfigData> {
// Return cached config if available
if (configCache) {
return configCache;