Skip to content

Automate browser based workflows with AI

fix recording_url (#1818)

Ming Fanga5ecdd9d7d3d
diff --git a/skyvern-frontend/src/routes/workflows/workflowRun/WorkflowRunRecording.tsx b/skyvern-frontend/src/routes/workflows/workflowRun/WorkflowRunRecording.tsx
index 1b63f055d..fa6d7766c 100644
--- a/skyvern-frontend/src/routes/workflows/workflowRun/WorkflowRunRecording.tsx
+++ b/skyvern-frontend/src/routes/workflows/workflowRun/WorkflowRunRecording.tsx
@@ -1,8 +1,12 @@
import { useWorkflowRunQuery } from "../hooks/useWorkflowRunQuery";
+import { artifactApiBaseUrl } from "@/util/env";
function WorkflowRunRecording() {
const { data: workflowRun } = useWorkflowRunQuery();
- const recordingURL = workflowRun?.recording_url;
+ let recordingURL = workflowRun?.recording_url;
+ if (recordingURL?.startsWith("file://")) {
+ recordingURL = `${artifactApiBaseUrl}/artifact/recording?path=${recordingURL.slice(7)}`;
+ }
return recordingURL ? (
<video src={recordingURL} controls className="w-full rounded-md" />
) : (