From c8ceea493439949355d3b29fd5182df5b0b1e5e4 Mon Sep 17 00:00:00 2001 From: stanleyowen <69080584+stanleyowen@users.noreply.github.com> Date: Sat, 27 Feb 2021 18:27:06 +0700 Subject: [PATCH] Added Auto Deploy to Netlify --- client/public/_redirects | 1 + client/src/components/Chat/Chat.js | 2 +- client/src/components/Join/Join.js | 2 +- 3 files changed, 3 insertions(+), 2 deletions(-) create mode 100644 client/public/_redirects diff --git a/client/public/_redirects b/client/public/_redirects new file mode 100644 index 0000000..50a4633 --- /dev/null +++ b/client/public/_redirects @@ -0,0 +1 @@ +/* /index.html 200 \ No newline at end of file diff --git a/client/src/components/Chat/Chat.js b/client/src/components/Chat/Chat.js index 24ac7b9..7ea6bc6 100644 --- a/client/src/components/Chat/Chat.js +++ b/client/src/components/Chat/Chat.js @@ -16,7 +16,7 @@ const Chat = ({ location }) => { const [users, setUsers] = useState([]); const [message, setMessage] = useState(''); const [messages, setMessages] = useState([]); - const ENDPOINT = 'https://e76c276a8ec4c46e80cec9bd1a3b67.herokuapp.com/'; + const ENDPOINT = 'https://chatapp-clone-api.herokuapp.com/'; useEffect(() => { const { name, room } = queryString.parse(location.search); diff --git a/client/src/components/Join/Join.js b/client/src/components/Join/Join.js index 95b7b40..b13367f 100644 --- a/client/src/components/Join/Join.js +++ b/client/src/components/Join/Join.js @@ -13,7 +13,7 @@ const Join = () => {