Parent PRD
What to build
Create a new module exporting an apiBase constant computed from import.meta.env.BASE_URL. Update all explorer fetch functions (_gremlinFetch, _sparqlFetch, _openCypherFetch) and summary endpoints to use apiBase instead of connection.url. Update the Vite dev server proxy config to a single /api rule.
This is the core client-side change that decouples outbound requests from the connection URL.
Type: HITL — requires review before completion.
Acceptance criteria
Blocked by
User stories addressed
- User story 8
- User story 12
Parent PRD
What to build
Create a new module exporting an
apiBaseconstant computed fromimport.meta.env.BASE_URL. Update all explorer fetch functions (_gremlinFetch,_sparqlFetch,_openCypherFetch) and summary endpoints to useapiBaseinstead ofconnection.url. Update the Vite dev server proxy config to a single/apirule.This is the core client-side change that decouples outbound requests from the connection URL.
Type: HITL — requires review before completion.
Acceptance criteria
apiBasemodule exports a constant derived fromBASE_URLapiBaseresolves tohttp://localhost/api/for defaultBASE_URLof/apiBaseresolves correctly for prefixedBASE_URL(e.g.,/proxy/9250/)apiBasefor request URLsapiBasefor request URLs"/api": { target: expressServerUrl }apiBasecomputation for default and prefixedBASE_URLapiBase-derived URLsBlocked by
User stories addressed