dotenv on frontend

This commit is contained in:
canove
2020-06-19 12:22:20 -03:00
parent 02bab6bee5
commit b7b2f4bfe9
8 changed files with 7 additions and 255 deletions

View File

@@ -64,7 +64,7 @@ const WhatsAuth = () => {
}, []);
useEffect(() => {
const socket = openSocket("http://localhost:8080");
const socket = openSocket(process.env.REACT_APP_BACKEND_URL);
socket.on("qrcode", data => {
if (data.action === "update") {