feat: use api url env variable

This commit is contained in:
karishmas6
2024-11-03 01:12:32 +05:30
parent aafae6532f
commit 006b249774
2 changed files with 2 additions and 2 deletions

View File

@@ -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
});

View File

@@ -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
});