From 24db3503609067ef9f39a338f5808571a7c1b43f Mon Sep 17 00:00:00 2001 From: Szymon Nowakowski Date: Tue, 24 Dec 2024 14:19:31 +0100 Subject: [PATCH] Fix missing protocol in dev mode client --- packages/frontend/src/client.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/frontend/src/client.ts b/packages/frontend/src/client.ts index 9d6b5d0..f858b41 100644 --- a/packages/frontend/src/client.ts +++ b/packages/frontend/src/client.ts @@ -5,7 +5,7 @@ import { Effect } from "effect"; export type ResponseEffect> = Effect.Effect extends never ? never : { [Status in keyof R]: { status: Status, value: R[Status] } }[Exclude]>; -export const client = treaty(process.env.NODE_ENV === "production" ? "" : "localhost:3000", { +export const client = treaty(process.env.NODE_ENV === "production" ? "" : "http://localhost:3000", { fetch: { credentials: "include", },