murtaza-2007 commited on
Commit
fb44bb6
Β·
1 Parent(s): 3396318

Point frontend at Hugging Face Spaces backend, retire Render

Browse files
Files changed (1) hide show
  1. app.js +6 -6
app.js CHANGED
@@ -163,12 +163,12 @@ function extractTitleFromWikiUrl(input) {
163
  // ════════════════════════════════════════════════════════════════════════════
164
 
165
  // Single source of truth for the backend origin. Frontend (Vercel) and
166
- // backend (Render) are deployed on separate domains, so this must be a
167
- // fixed URL β€” the dynamic window.location.hostname trick used in local/LAN
168
- // dev only works when frontend and backend share a host. The WebSocket URL
169
- // below is derived from it automatically (http→ws, https→wss), so nothing
170
- // else in this file needs to change if the backend URL changes.
171
- const AC_BACKEND = 'https://aurelius-9ly2.onrender.com';
172
  const AC_BACKEND_WS = AC_BACKEND.replace(/^http/, 'ws');
173
  const WIKI_OPENSEARCH = 'https://en.wikipedia.org/w/api.php';
174
 
 
163
  // ════════════════════════════════════════════════════════════════════════════
164
 
165
  // Single source of truth for the backend origin. Frontend (Vercel) and
166
+ // backend (Hugging Face Spaces) are deployed on separate domains, so this
167
+ // must be a fixed URL β€” the dynamic window.location.hostname trick used in
168
+ // local/LAN dev only works when frontend and backend share a host. The
169
+ // WebSocket URL below is derived from it automatically (http→ws, https→wss),
170
+ // so nothing else in this file needs to change if the backend URL changes.
171
+ const AC_BACKEND = 'https://mvali77-aurelius.hf.space';
172
  const AC_BACKEND_WS = AC_BACKEND.replace(/^http/, 'ws');
173
  const WIKI_OPENSEARCH = 'https://en.wikipedia.org/w/api.php';
174