From 18cf369dd75e04c94aa918906181cad77cff42c3 Mon Sep 17 00:00:00 2001 From: Pranay Prakash Date: Tue, 6 Jan 2026 18:42:23 -0800 Subject: [PATCH] Fix hasStepSourceMaps to return false for Vercel production builds Step sourcemaps don't work in Vercel production deployments. Previously the function returned true for most frameworks on all Vercel deployments. Now it correctly returns false for production builds while preserving the existing behavior for preview builds. --- packages/core/e2e/utils.ts | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/packages/core/e2e/utils.ts b/packages/core/e2e/utils.ts index 70c7aa6d5..ccf69ab8e 100644 --- a/packages/core/e2e/utils.ts +++ b/packages/core/e2e/utils.ts @@ -33,7 +33,12 @@ export function hasStepSourceMaps(): boolean { return false; } - // Vercel builds have proper source maps for all other frameworks, EXCEPT sveltekit + // Vercel production builds don't support step source maps + if (process.env.WORKFLOW_VERCEL_ENV === 'production') { + return false; + } + + // Vercel preview builds have proper source maps for all other frameworks, EXCEPT sveltekit if (!isLocalDeployment()) { return appName !== 'sveltekit'; }