diff --git a/.changeset/spotty-eagles-complain.md b/.changeset/spotty-eagles-complain.md new file mode 100644 index 0000000000..5728c6a963 --- /dev/null +++ b/.changeset/spotty-eagles-complain.md @@ -0,0 +1,5 @@ +--- +'@e2b/cli': patch +--- + +Use `E2B_DOMAIN` for auth login diff --git a/packages/cli/src/user.ts b/packages/cli/src/user.ts index b2dbbfcd52..808933c9a7 100644 --- a/packages/cli/src/user.ts +++ b/packages/cli/src/user.ts @@ -14,7 +14,7 @@ export interface UserConfig { } export const USER_CONFIG_PATH = path.join(os.homedir(), '.e2b', 'config.json') // TODO: Keep in Keychain -export const DOCS_BASE = process.env.E2B_DOCS_BASE || 'https://e2b.dev/docs' +export const DOCS_BASE = process.env.E2B_DOCS_BASE || `https://${process.env.E2B_DOMAIN || 'e2b.dev'}/docs` export function getUserConfig(): UserConfig | null { if (!fs.existsSync(USER_CONFIG_PATH)) return null