frontend: trigger vercel update with latest env variables

This commit is contained in:
Mathieu Virbel
2023-08-04 10:32:36 +02:00
parent 7f67c56f7e
commit dc84f578e0

View File

@@ -1,6 +1,7 @@
import { useEffect, useState } from "react"; import { useEffect, useState } from "react";
import Peer from "simple-peer"; import Peer from "simple-peer";
// allow customization of the WebRTC server URL from env
const WEBRTC_SERVER_URL = process.env.NEXT_PUBLIC_WEBRTC_SERVER_URL || "http://127.0.0.1:1250/offer"; const WEBRTC_SERVER_URL = process.env.NEXT_PUBLIC_WEBRTC_SERVER_URL || "http://127.0.0.1:1250/offer";
const useWebRTC = (stream) => { const useWebRTC = (stream) => {