changes in topicview.jsx
This commit is contained in:
@@ -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
|
|
||||||
@@ -11,10 +11,10 @@ function toProxyPath(fullUrl) {
|
|||||||
if (fullUrl.startsWith(LEGACY_BASE_URL)) {
|
if (fullUrl.startsWith(LEGACY_BASE_URL)) {
|
||||||
return fullUrl.slice(LEGACY_BASE_URL.length)
|
return fullUrl.slice(LEGACY_BASE_URL.length)
|
||||||
}
|
}
|
||||||
|
// REST API (jupiter.nearle.app): Proxy requests through local server to avoid CORS issues
|
||||||
// REST API (jupiter.nearle.app): We used to proxy this to avoid CORS issues,
|
if (fullUrl.startsWith(REST_BASE_URL)) {
|
||||||
// but we fixed CORS on the Kubernetes backend yesterday (jupiter-cors-proxy)!
|
return fullUrl.slice(REST_BASE_URL.length)
|
||||||
// So we can now fetch from the full URL directly.
|
}
|
||||||
return fullUrl
|
return fullUrl
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user