Skip to content

πŸ™Œ OpenHands: AI-Driven Development

[ALL-597] fix(frontend): Fetch `config.json` locally (#4522)

sp.wack64adb64fef94
diff --git a/frontend/src/api/open-hands.ts b/frontend/src/api/open-hands.ts
index 25a0c82c25..38bda53e96 100644
--- a/frontend/src/api/open-hands.ts
+++ b/frontend/src/api/open-hands.ts
@@ -62,7 +62,7 @@ class OpenHands {
}
static async getConfig(): Promise<GetConfigResponse> {
- const response = await fetch(`${OpenHands.BASE_URL}/config.json`, {
+ const response = await fetch("config.json", {
headers: {
"Cache-Control": "no-cache",
},