diff --git a/server/src/api/record.ts b/server/src/api/record.ts index 7710f075..02ae922d 100644 --- a/server/src/api/record.ts +++ b/server/src/api/record.ts @@ -656,7 +656,7 @@ export async function handleRunRecording(id: string, userId: string) { throw new Error('browserId or runId or userId is undefined'); } - const socket = io(`http://localhost:8080/${browserId}`, { + const socket = io(`${process.env.BACKEND_URL}/${browserId}`, { transports: ['websocket'], rejectUnauthorized: false }); diff --git a/server/src/workflow-management/scheduler/index.ts b/server/src/workflow-management/scheduler/index.ts index 6a98217a..0dd1154e 100644 --- a/server/src/workflow-management/scheduler/index.ts +++ b/server/src/workflow-management/scheduler/index.ts @@ -229,7 +229,7 @@ export async function handleRunRecording(id: string, userId: string) { throw new Error('browserId or runId or userId is undefined'); } - const socket = io(`http://localhost:8080/${browserId}`, { + const socket = io(`${process.env.BACKEND_URL}/${browserId}`, { transports: ['websocket'], rejectUnauthorized: false });