Skip to content

Commit

Permalink
frontend: fix connect rps base url
Browse files Browse the repository at this point in the history
  • Loading branch information
bojand committed Sep 7, 2023
1 parent f45fe54 commit 7ec6425
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions frontend/src/state/backendApi.ts
Original file line number Diff line number Diff line change
Expand Up @@ -429,7 +429,7 @@ const apiStore = {

// do it
const transport = createConnectTransport({
baseUrl: 'http://localhost:9090',
baseUrl: window.location.origin,
});

const client = createPromiseClient(ConsoleService, transport);
Expand Down Expand Up @@ -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);
Expand Down

0 comments on commit 7ec6425

Please sign in to comment.