Skip to content

Commit 56d2371

Browse files
committed
feat: set default backend url
1 parent ad43fc0 commit 56d2371

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

server/src/api/record.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -650,7 +650,7 @@ export async function handleRunRecording(id: string, userId: string) {
650650
throw new Error('browserId or runId or userId is undefined');
651651
}
652652

653-
const socket = io(`${process.env.BACKEND_URL}/${browserId}`, {
653+
const socket = io(`${process.env.BACKEND_URL ? process.env.BACKEND_URL : 'http://localhost:8080'}/${browserId}`, {
654654
transports: ['websocket'],
655655
rejectUnauthorized: false
656656
});

0 commit comments

Comments
 (0)