e.stopPropagation()}
- >
-
-
- }
- content="View on Vercel"
- />
+ e.stopPropagation()}
+ >
+
+
) : (
"–"
)}
diff --git a/apps/webapp/app/v3/vercel/vercelProjectIntegrationSchema.ts b/apps/webapp/app/v3/vercel/vercelProjectIntegrationSchema.ts
index 213e730c643..64ed5d55a3c 100644
--- a/apps/webapp/app/v3/vercel/vercelProjectIntegrationSchema.ts
+++ b/apps/webapp/app/v3/vercel/vercelProjectIntegrationSchema.ts
@@ -202,6 +202,15 @@ export function shouldSyncEnvVarForAnyEnvironment(
return false;
}
+export function buildVercelDeploymentUrl(
+ vercelTeamSlug: string | undefined,
+ vercelProjectName: string,
+ integrationDeploymentId: string
+): string {
+ const vercelId = integrationDeploymentId.replace(/^dpl_/, "");
+ return `https://vercel.com/${vercelTeamSlug}/${vercelProjectName}/${vercelId}`;
+}
+
export function isPullEnvVarsEnabledForEnvironment(
pullEnvVarsBeforeBuild: EnvSlug[] | null | undefined,
environmentType: TriggerEnvironmentType