Skip to content
6 changes: 3 additions & 3 deletions packages/world-vercel/src/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ function httpLog(
* `main` — rewritten by external CI for branch-deployment testing.
* Prefer `VERCEL_WORKFLOW_SERVER_URL` for deployment-time configuration.
*/
const WORKFLOW_SERVER_URL_OVERRIDE = '';
const WORKFLOW_SERVER_URL_OVERRIDE = 'https://workflow-server-c824rowxj.vercel.sh';

/**
* Per-request timeout for HTTP calls to workflow-server (in ms).
Expand Down Expand Up @@ -423,7 +423,7 @@ export async function makeRequest<T>({
const contentType = response.headers.get('Content-Type') || 'unknown';
throw new WorkflowWorldError(
`Failed to parse response body for ${request.method} ${endpoint} (Content-Type: ${contentType}):\n\n${error}`,
{ url, cause: error }
{ url, code: 'PARSE_ERROR', cause: error }
);
}

Expand All @@ -442,7 +442,7 @@ export async function makeRequest<T>({
: '';
throw new WorkflowWorldError(
`Schema validation failed for ${method} ${endpoint}:\n${issues}${debugContext}`,
{ url, cause: validationResult.error }
{ url, code: 'SCHEMA_VALIDATION', cause: validationResult.error }
);
}
return validationResult.data;
Expand Down
Loading