Skip to content

Commit

Permalink
fix: don't hard-code base URL of TS Connect client (#407)
Browse files Browse the repository at this point in the history
  • Loading branch information
alecthomas authored Sep 19, 2023
1 parent a742a08 commit ba918e6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion console/client/src/hooks/use-client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { ServiceType } from '@bufbuild/protobuf'
import { useMemo } from 'react'

const transport = createConnectTransport({
baseUrl: 'http://localhost:8892',
baseUrl: window.location.origin,
})

export const createClient = <T extends ServiceType>(service: T): PromiseClient<T> => {
Expand Down

0 comments on commit ba918e6

Please sign in to comment.