Skip to content

fix(core): handle Vercel production environments correctly in deployment inference - #5482

Open
sedatdagg wants to merge 4 commits into
BuilderIO:mainfrom
sedatdagg:main
Open

sedatdagg wants to merge 4 commits into
BuilderIO:mainfrom
sedatdagg:main

Conversation

@sedatdagg

Copy link
Copy Markdown

When deploying to Vercel, the environment inference correctly maps VERCEL_ENV === "preview". However, it lacked a check for Vercel's production environment, causing it to fall through and incorrectly infer the environment as undefined or local when actually running in Vercel production.

This adds the missing check for vercelEnv === "production" and includes the accompanying test case.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant