changes in topicview.jsx

This commit is contained in:
2026-05-21 12:52:34 +05:30
parent df8ff4a058
commit d2c6948626
2 changed files with 4 additions and 10 deletions

View File

@@ -1,6 +0,0 @@
# Copy this file to .env.local and set the real value.
# NO `VITE_` prefix — the secret stays server-side and is never bundled.
HASURA_ADMIN_SECRET=your-hasura-admin-secret-here
# Optional production server port (defaults to 3000)
# PORT=3000

View File

@@ -11,10 +11,10 @@ function toProxyPath(fullUrl) {
if (fullUrl.startsWith(LEGACY_BASE_URL)) {
return fullUrl.slice(LEGACY_BASE_URL.length)
}
// REST API (jupiter.nearle.app): We used to proxy this to avoid CORS issues,
// but we fixed CORS on the Kubernetes backend yesterday (jupiter-cors-proxy)!
// So we can now fetch from the full URL directly.
// REST API (jupiter.nearle.app): Proxy requests through local server to avoid CORS issues
if (fullUrl.startsWith(REST_BASE_URL)) {
return fullUrl.slice(REST_BASE_URL.length)
}
return fullUrl
}