diff --git a/apps/server/src/cli/project.ts b/apps/server/src/cli/project.ts index 95e9ed7f38..0d8e7eca15 100644 --- a/apps/server/src/cli/project.ts +++ b/apps/server/src/cli/project.ts @@ -116,12 +116,8 @@ const failLiveServerRequest = (cause: unknown) => { }; const makeLiveServerClient = (origin: string) => - Effect.gen(function* () { - const httpClient = yield* HttpClient.HttpClient; - return yield* HttpApiClient.makeWith(EnvironmentHttpApi, { - baseUrl: origin, - httpClient, - }); + HttpApiClient.make(EnvironmentHttpApi, { + baseUrl: origin, }); const normalizeWorkspaceRootForProjectCommand = Effect.fn( diff --git a/packages/client-runtime/src/remote.ts b/packages/client-runtime/src/remote.ts index 896a218ade..41b4dce731 100644 --- a/packages/client-runtime/src/remote.ts +++ b/packages/client-runtime/src/remote.ts @@ -170,12 +170,8 @@ const executeRemoteRequest = ( ); export const makeEnvironmentHttpApiClient = (httpBaseUrl: string) => - Effect.gen(function* () { - const httpClient = yield* HttpClient.HttpClient; - return yield* HttpApiClient.makeWith(EnvironmentHttpApi, { - httpClient, - baseUrl: remoteApiBaseUrl(httpBaseUrl), - }); + HttpApiClient.make(EnvironmentHttpApi, { + baseUrl: remoteApiBaseUrl(httpBaseUrl), }); export const exchangeRemoteDpopAccessToken = Effect.fn(