commit 08

This commit is contained in:
Moritz Ruth 2025-02-10 17:52:34 +01:00
parent 6da3028777
commit ae1c71f4c5
Signed by: moritzruth
GPG key ID: C9BBAB79405EE56D

View file

@ -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({