Skip to content

Commit

Permalink
fix: change url for production
Browse files Browse the repository at this point in the history
  • Loading branch information
FarhanRafid97 committed Sep 21, 2023
1 parent 1979399 commit 3e12f12
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/modules/posts/TopThreePosts.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ const TopThreePosts = () => {
let ignore = false;

const getdata = async () => {
const dataReq = await fetch('http://localhost:3000/api/top-3-posts');
const dataReq = await fetch('https://farhan-ten.vercel.app/api/top-3-posts');
const jsonData = await dataReq.json();
if (!ignore) {
setData(jsonData.response);
Expand Down

0 comments on commit 3e12f12

Please sign in to comment.