From 7ec6425de5561c544951d494daf2256cb215e64b Mon Sep 17 00:00:00 2001 From: Bojan Djurkovic Date: Thu, 7 Sep 2023 16:03:39 -0300 Subject: [PATCH] frontend: fix connect rps base url --- frontend/src/state/backendApi.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/frontend/src/state/backendApi.ts b/frontend/src/state/backendApi.ts index 3829c35df..6700e79a1 100644 --- a/frontend/src/state/backendApi.ts +++ b/frontend/src/state/backendApi.ts @@ -429,7 +429,7 @@ const apiStore = { // do it const transport = createConnectTransport({ - baseUrl: 'http://localhost:9090', + baseUrl: window.location.origin, }); const client = createPromiseClient(ConsoleService, transport); @@ -622,7 +622,7 @@ const apiStore = { // https://github.com/connectrpc/examples-es const transport = createConnectTransport({ - baseUrl: 'http://localhost:9090', + baseUrl: window.location.origin, }); const client = createPromiseClient(ConsoleService, transport);