commit 08
This commit is contained in:
parent
6da3028777
commit
ae1c71f4c5
1 changed files with 4 additions and 0 deletions
|
@ -7,6 +7,10 @@ wsUrl.protocol = wsUrl.protocol.replace("http", "ws")
|
||||||
wsUrl.pathname = "/ws"
|
wsUrl.pathname = "/ws"
|
||||||
wsUrl.hash = ""
|
wsUrl.hash = ""
|
||||||
|
|
||||||
|
if (import.meta.env.PROD) {
|
||||||
|
wsUrl.hostname = "server." + wsUrl.hostname
|
||||||
|
}
|
||||||
|
|
||||||
export const trpcClient = createTRPCProxyClient<AppRouter>({
|
export const trpcClient = createTRPCProxyClient<AppRouter>({
|
||||||
links: [
|
links: [
|
||||||
wsLink({
|
wsLink({
|
||||||
|
|
Loading…
Add table
Reference in a new issue