diff --git a/js/widgets/aidebugger.js b/js/widgets/aidebugger.js index dd62dac493..a183582d87 100644 --- a/js/widgets/aidebugger.js +++ b/js/widgets/aidebugger.js @@ -22,18 +22,8 @@ function AIDebuggerWidget() { const CHATHEIGHT = 600; const BACKEND_CONFIG = { - BASE_URL: (() => { - - if (window.location.hostname === "localhost" || window.location.hostname === "127.0.0.1") { - return "http://localhost:8000"; - } - else if (window.location.hostname.includes("musicblocks.sugarlabs.org")) { - return `${window.location.protocol}//api.musicblocks.sugarlabs.org`; - } - else { - return `${window.location.protocol}//${window.location.hostname}:8000`; - } - })(), + // This URL points to the FastAPI server running on the EC2 instance. + BASE_URL: "http://13.49.246.243:8000", ENDPOINTS: { ANALYZE: "/analyze" },