Fix missing protocol in dev mode client
This commit is contained in:
@@ -5,7 +5,7 @@ import { Effect } from "effect";
|
||||
|
||||
export type ResponseEffect<R extends Record<number, unknown>> = Effect.Effect<R[200], Exclude<keyof R, 200> extends never ? never : { [Status in keyof R]: { status: Status, value: R[Status] } }[Exclude<keyof R, 200>]>;
|
||||
|
||||
export const client = treaty<App>(process.env.NODE_ENV === "production" ? "" : "localhost:3000", {
|
||||
export const client = treaty<App>(process.env.NODE_ENV === "production" ? "" : "http://localhost:3000", {
|
||||
fetch: {
|
||||
credentials: "include",
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user