fix(gateway): proxy browser server functions to workspace apps
This commit is contained in:
@@ -184,8 +184,8 @@ describe("RPC integration", () => {
|
||||
const originalInternal = process.env.WRNEXUS_INTERNAL_ORIGINS;
|
||||
try {
|
||||
// The workspace (public) origin deliberately points somewhere that
|
||||
// cannot serve the RPC — the gateway 404s the RPC prefix on any
|
||||
// request that arrives at a public origin. Only the internal-origin
|
||||
// cannot serve the RPC — the gateway 404s private nested RPC routes
|
||||
// that arrive at a public origin. Only the internal-origin
|
||||
// map points at the real server. If httpTransport() ever falls back
|
||||
// to the public origin by default again, this call fails.
|
||||
process.env.WRNEXUS_WORKSPACE_ORIGINS = JSON.stringify({
|
||||
|
||||
Reference in New Issue
Block a user