Skip to content

Commit f6535a5

Browse files
committed
Add TURN configuration
1 parent cfad33c commit f6535a5

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

peerprep-fe/src/app/collaboration/components/AudioSharing.tsx

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ const AudioSharing = () => {
2121
process.env.NEXT_PUBLIC_AUDIO_SERVER_URL || 'http://localhost:5555';
2222

2323
// Add TURN server credentials from environment variables
24-
const TURN_SERVER = process.env.NEXT_PUBLIC_TURN_SERVER;
24+
const TURN_SERVER = process.env.NEXT_PUBLIC_TURN_SERVER || '';
2525
const TURN_USERNAME = process.env.NEXT_PUBLIC_TURN_USERNAME;
2626
const TURN_CREDENTIAL = process.env.NEXT_PUBLIC_TURN_PASSWORD;
2727

@@ -60,11 +60,11 @@ const AudioSharing = () => {
6060
{ urls: 'stun:stun.l.google.com:19302' },
6161
{ urls: 'stun:global.stun.twilio.com:3478' },
6262
// Add TURN server configuration
63-
// {
64-
// urls: TURN_SERVER,
65-
// username: TURN_USERNAME,
66-
// credential: TURN_CREDENTIAL,
67-
// },
63+
{
64+
urls: TURN_SERVER,
65+
username: TURN_USERNAME,
66+
credential: TURN_CREDENTIAL,
67+
},
6868
],
6969
},
7070
});

0 commit comments

Comments
 (0)