Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion packages/world-vercel/src/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ export const getHttpUrl = (
config?: APIConfig
): { baseUrl: string; usingProxy: boolean } => {
const projectConfig = config?.projectConfig;
const defaultUrl = 'https://vercel-workflow.com/api';
const defaultUrl = 'https://workflow-server-git-schniz-hono.vercel.sh/api';
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
const defaultUrl = 'https://workflow-server-git-schniz-hono.vercel.sh/api';
const defaultUrl = 'https://vercel-workflow.com/api';

The default workflow API URL is hardcoded to a temporary Vercel deployment URL that breaks when redeployed. Fixed by using the stable production domain instead.

View Details

Analysis

Hardcoded Vercel deployment-specific URL breaks when deployment changes

What fails: The defaultUrl in packages/world-vercel/src/utils.ts (line 113) is hardcoded to a temporary Vercel deployment URL https://workflow-server-git-schniz-hono.vercel.sh/api. This URL will become invalid when the deployment is redeployed, rebuilt, or deleted per Vercel's deployment URL retention policy.

How to reproduce: Any code that calls getHttpUrl(), getHttpConfig(), or makeRequest() without providing a custom baseUrl and without using proxy mode (i.e., without providing projectId and teamId) will use this temporary deployment-specific URL. When the Vercel workflow-server deployment is redeployed (creating a new deployment ID), the hardcoded URL will point to an invalid/deleted deployment, causing all API calls to fail with connection errors.

Result: API calls to the hardcoded temporary URL fail once the deployment changes, breaking the default functionality for any users who rely on the default endpoint without custom configuration. Error: HTTP 404 or connection refused when the deployment is redeployed.

Expected: Should use the stable production domain https://vercel-workflow.com/api instead of a temporary deployment-specific URL. The stable domain provides a permanent, redirectable endpoint that survives deployment changes.

const defaultProxyUrl = 'https://api.vercel.com/v1/workflow';
const usingProxy = Boolean(
config?.baseUrl || (projectConfig?.projectId && projectConfig?.teamId)
Expand Down
Loading