diff --git a/cli/src/utils/error-handling.ts b/cli/src/utils/error-handling.ts index 05c603c5eb..74daed4dc2 100644 --- a/cli/src/utils/error-handling.ts +++ b/cli/src/utils/error-handling.ts @@ -13,7 +13,7 @@ import type { import { IS_FREEBUFF } from './constants' -const defaultAppUrl = env.NEXT_PUBLIC_CODEBUFF_APP_URL || 'https://codebuff.com' +const defaultAppUrl = env.NEXT_PUBLIC_CODEBUFF_APP_URL || 'https://www.codebuff.com' // Normalize unknown errors to a user-facing string. const extractErrorMessage = (error: unknown, fallback: string): string => { diff --git a/cli/src/utils/freebuff-session-api.ts b/cli/src/utils/freebuff-session-api.ts index e78a8cb065..3c3e1f9637 100644 --- a/cli/src/utils/freebuff-session-api.ts +++ b/cli/src/utils/freebuff-session-api.ts @@ -95,7 +95,7 @@ export function sessionFetchSignal( function sessionEndpoint(): string { const base = ( - env.NEXT_PUBLIC_CODEBUFF_APP_URL || 'https://codebuff.com' + env.NEXT_PUBLIC_CODEBUFF_APP_URL || 'https://www.codebuff.com' ).replace(/\/$/, '') return `${base}/api/v1/freebuff/session` } diff --git a/sdk/src/validate-agents.ts b/sdk/src/validate-agents.ts index db21af7224..41dd3eda04 100644 --- a/sdk/src/validate-agents.ts +++ b/sdk/src/validate-agents.ts @@ -26,7 +26,7 @@ export interface ValidateAgentsOptions { /** * The base URL of the Codebuff website API. * Optional - defaults to NEXT_PUBLIC_CODEBUFF_APP_URL or environment-based URL. - * Example: 'https://codebuff.com' + * Example: 'https://www.codebuff.com' */ websiteUrl?: string } @@ -49,7 +49,7 @@ export interface ValidateAgentsOptions { * // Remote validation * const result = await validateAgents(definitions, { * remote: true, - * websiteUrl: 'https://codebuff.com' + * websiteUrl: 'https://www.codebuff.com' * }) * ``` */