Skip to content

Commit

Permalink
chore: change url prod in request latest3 blog
Browse files Browse the repository at this point in the history
  • Loading branch information
FarhanRafid97 committed Sep 21, 2023
1 parent 12b0e40 commit 74b2e0c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/components/modules/posts/TopThreePosts.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@ const TopThreePosts = () => {

useEffect(() => {
let ignore = false;
// https://farhan-ten.vercel.app/api/top-3-posts

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) {
Expand Down

0 comments on commit 74b2e0c

Please sign in to comment.