Domian Updt

This commit is contained in:
Jyotirmoy Bandyopadhayaya 2021-12-20 01:35:31 +05:30
parent 63694be200
commit 10bcaa7ad5
1 changed files with 2 additions and 2 deletions

View File

@ -18,12 +18,12 @@ const Chat = ({ location }) => {
const [messages, setMessages] = useState([]);
const [users, setUsers] = useState('');
const history = useHistory();
let socketUrl = "http://localhost:5000/";
let socketUrl = "https://irc.b68dev.xyz";
if (process.env.NODE_ENV === "production") {
socketUrl = "https://irc.b68dev.xyz";
} else if (process.env.NODE_ENV != "production") {
socketUrl = "http://localhost:5000/";
socketUrl = "https://irc.b68dev.xyz";
}
useEffect(() => {