mirror of https://github.com/BRAVO68WEB/irc.git
Domian Updt
This commit is contained in:
parent
63694be200
commit
10bcaa7ad5
|
@ -18,12 +18,12 @@ const Chat = ({ location }) => {
|
||||||
const [messages, setMessages] = useState([]);
|
const [messages, setMessages] = useState([]);
|
||||||
const [users, setUsers] = useState('');
|
const [users, setUsers] = useState('');
|
||||||
const history = useHistory();
|
const history = useHistory();
|
||||||
let socketUrl = "http://localhost:5000/";
|
let socketUrl = "https://irc.b68dev.xyz";
|
||||||
|
|
||||||
if (process.env.NODE_ENV === "production") {
|
if (process.env.NODE_ENV === "production") {
|
||||||
socketUrl = "https://irc.b68dev.xyz";
|
socketUrl = "https://irc.b68dev.xyz";
|
||||||
} else if (process.env.NODE_ENV != "production") {
|
} else if (process.env.NODE_ENV != "production") {
|
||||||
socketUrl = "http://localhost:5000/";
|
socketUrl = "https://irc.b68dev.xyz";
|
||||||
}
|
}
|
||||||
|
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
|
|
Loading…
Reference in New Issue