Skip to content

Commit

Permalink
replaced render link with aws
Browse files Browse the repository at this point in the history
  • Loading branch information
alanansari authored Nov 10, 2023
1 parent 5520a47 commit 91d975f
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion src/component/Home Page/ShareTweetUser.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import 'react-toastify/dist/ReactToastify.css';
import { io } from "socket.io-client";
import { ShareTweet } from "../../react-redux/actions/Tweets";

const ENDPOINT = "https://tweeter-backend-7ngr.onrender.com";
const ENDPOINT = "https://tweeter.devalan.tech/";
var socket, currentChattingWith;
function ShareTweetUser(props) {

Expand Down
2 changes: 1 addition & 1 deletion src/component/Messages/Chats.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ import SearchChatUser from "./SearchChatPopUp";
import deleteIcon from "../Assets/delete.svg";
// import { Socket } from "socket.io-client";

const ENDPOINT = "https://tweeter-backend-7ngr.onrender.com";
const ENDPOINT = "https://tweeter.devalan.tech/";
var socket, currentChattingWith;
function Chats() {
const [socketConnected, setSocketConnected] = useState(false);
Expand Down
8 changes: 4 additions & 4 deletions src/component/Messages/ScrollableChats.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -96,14 +96,14 @@ function ScrollableChat(props) {
<p className="scrollChatText">{chat.text}</p>
{(chat.image != null && chat.image.startsWith("blob:")) ? (
<img src={chat.image} alt="image" className="chatImageShow" />) : (
chat.image != null ? (<img src={`https://tweeter-backend-7ngr.onrender.com/${chat.image}`} alt="image" className="chatImageShow" />) : null)}
chat.image != null ? (<img src={`https://tweeter.devalan.tech//${chat.image}`} alt="image" className="chatImageShow" />) : null)}
{(chat.video != null && chat.video.startsWith("blob:")) ? (
<video className="chatImageShow" controls>
<source src={chat.video} type="video/mp4" />
</video>) : (
chat.video != null ? (<video className="chatImageShow" controls>
<source src={`https://tweeter-backend-7ngr.onrender.com/${chat.video}`} type="video/mp4" />
<source src={`https://tweeter.devalan.tech//${chat.video}`} type="video/mp4" />
</video>) : null)}
</div>)
}
Expand All @@ -113,14 +113,14 @@ function ScrollableChat(props) {
<p className="scrollChatText">{chat.text}</p>
{(chat.image != null && chat.image.startsWith("blob:")) ? (
<img src={chat.image} alt="image" className="chatImageShow" />) : (
chat.image != null ? (<img src={`https://tweeter-backend-7ngr.onrender.com/${chat.image}`} alt="image" className="chatImageShow" />) : null)}
chat.image != null ? (<img src={`https://tweeter.devalan.tech//${chat.image}`} alt="image" className="chatImageShow" />) : null)}
{(chat.video != null && chat.video.startsWith("blob:")) ? (
<video className="chatImageShow" controls>
<source src={chat.video} type="video/mp4" />
</video>) : (
chat.video != null ? (<video className="chatImageShow" controls>
<source src={`https://tweeter-backend-7ngr.onrender.com/${chat.video}`} type="video/mp4" />
<source src={`https://tweeter.devalan.tech//${chat.video}`} type="video/mp4" />
</video>) : null)}
</div>)
}
Expand Down

1 comment on commit 91d975f

@vercel
Copy link

@vercel vercel bot commented on 91d975f Nov 10, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.