murtaza-2007 commited on
Commit Β·
fb44bb6
1
Parent(s): 3396318
Point frontend at Hugging Face Spaces backend, retire Render
Browse files
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 (
|
| 167 |
-
// fixed URL β the dynamic window.location.hostname trick used in
|
| 168 |
-
// dev only works when frontend and backend share a host. The
|
| 169 |
-
// below is derived from it automatically (httpβws, httpsβwss),
|
| 170 |
-
// else in this file needs to change if the backend URL changes.
|
| 171 |
-
const AC_BACKEND = 'https://
|
| 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 |
|