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)) {
|
||||
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
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user