Skip to content
Draft
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 @@ -32,7 +32,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-q11w7a7sc.vercel.sh/api'; // https://vercel-workflow.com/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-q11w7a7sc.vercel.sh/api'; // https://vercel-workflow.com/api';
const defaultUrl = 'https://vercel-workflow.com/api';

The default API URL was changed to a hardcoded Vercel deployment URL with a specific hash, which appears to be a temporary development URL rather than a stable production endpoint.

View Details

Analysis

Hardcoded Vercel preview deployment URL breaks published npm package

What fails: @workflow/world-vercel package published to npm contains hardcoded temporary Vercel preview deployment URL https://workflow-server-q11w7a7sc.vercel.sh/api instead of the stable production endpoint, causing all users of the package without explicit configuration to connect to a temporary development deployment that will eventually be removed.

How to reproduce:

  1. Install @workflow/world-vercel package from npm (version 4.0.1-beta.5 or later with this commit)
  2. Call createVercelWorld() without providing a baseUrl config
  3. Any API requests will attempt to connect to https://workflow-server-q11w7a7sc.vercel.sh/api
  4. Verify in network logs or debugging that requests go to this preview URL, which will fail when the preview deployment expires

Result: API requests fail when the Vercel preview deployment (identified by q11w7a7sc) is removed or redeployed, which is expected behavior for temporary deployments.

Expected: API requests should connect to the stable production endpoint https://vercel-workflow.com/api by default. Users should only be forced to a different endpoint if they explicitly configure baseUrl or provide projectId and teamId for proxy-based requests.

Background: The change was introduced in commit 0c519b5 ("Test workflow-server 88") which replaced the stable production URL with a Vercel preview deployment identifier. The commented-out code on the same line (// https://vercel-workflow.com/api') indicates this was a temporary test change that was accidentally committed. The package's publishConfig in package.json shows it is publicly published to npm, making this a breaking change for all package users.

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