diff --git a/client/packages/cli/src/commands/info.ts b/client/packages/cli/src/commands/info.ts index d091fb0fc2..f7902871c7 100644 --- a/client/packages/cli/src/commands/info.ts +++ b/client/packages/cli/src/commands/info.ts @@ -1,6 +1,6 @@ import { HttpClientResponse } from '@effect/platform'; import { Effect, Schema, Option } from 'effect'; -import { InstantHttpAuthed } from '../lib/http.ts'; +import { getBaseUrl, InstantHttpAuthed } from '../lib/http.ts'; import { version } from '@instantdb/version'; import { CurrentApp } from '../context/currentApp.ts'; @@ -21,6 +21,7 @@ export const DashAppResponse = Schema.Struct({ export const infoCommand = () => Effect.gen(function* () { + const baseUrl = yield* getBaseUrl; const authedHttp = yield* Effect.serviceOption(InstantHttpAuthed).pipe( Effect.map(Option.getOrNull), ); @@ -32,7 +33,10 @@ export const infoCommand = () => const meData = yield* authedHttp.get('/dash/me').pipe( Effect.flatMap(HttpClientResponse.schemaBodyJson(DashMeResponse)), Effect.mapError( - (e) => new Error("Couldn't get user information.", { cause: e }), + (e) => + new Error(`Couldn't get user information (${baseUrl}).`, { + cause: e, + }), ), ); diff --git a/client/packages/version/src/version.ts b/client/packages/version/src/version.ts index 968cd9d44b..2ea1c17157 100644 --- a/client/packages/version/src/version.ts +++ b/client/packages/version/src/version.ts @@ -2,6 +2,6 @@ // Update the version here and merge your code to main to // publish a new version of all of the packages to npm. -const version = 'v1.0.54'; +const version = 'v1.0.55'; export { version };