added env file for api url
This commit is contained in:
@@ -10,7 +10,7 @@ const Room = () => {
|
||||
|
||||
const {roomId} = useParams();
|
||||
|
||||
const WS_URL = `ws://localhost:5062/room/${roomId}`;
|
||||
const WS_URL = `ws://${process.env.REACT_APP_API_URL}/room/${roomId}`;
|
||||
|
||||
const [message, setMessage] = React.useState<string>('');
|
||||
const [messages, setMessages] = React.useState<string[]>([]);
|
||||
|
||||
Reference in New Issue
Block a user