Skip to content

Commit 4fd9300

Browse files
[e2e] Fix step source maps assertion for Vercel production (#1672)
1 parent 66585fd commit 4fd9300

2 files changed

Lines changed: 5 additions & 6 deletions

File tree

.changeset/cool-cups-greet.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
---
2+
---

packages/core/e2e/utils.ts

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -56,12 +56,9 @@ export function hasStepSourceMaps(): boolean {
5656
return false;
5757
}
5858

59-
// Vercel production builds don't support step source maps
60-
if (process.env.WORKFLOW_VERCEL_ENV === 'production') {
61-
return false;
62-
}
63-
64-
// Vercel preview builds have proper source maps for all other frameworks, EXCEPT sveltekit
59+
// Vercel deployments (both production and preview) have proper source maps
60+
// for all frameworks EXCEPT sveltekit, thanks to ESM step bundles with
61+
// inline source maps.
6562
if (!isLocalDeployment()) {
6663
return appName !== 'sveltekit';
6764
}

0 commit comments

Comments
 (0)