From 3e12f12dc75ff60a92ae15ee5533406b9f206a5c Mon Sep 17 00:00:00 2001 From: farhan rafid syauqi Date: Thu, 21 Sep 2023 22:23:08 +0700 Subject: [PATCH] fix: change url for production --- src/components/modules/posts/TopThreePosts.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/modules/posts/TopThreePosts.tsx b/src/components/modules/posts/TopThreePosts.tsx index 2de12e9..a876690 100644 --- a/src/components/modules/posts/TopThreePosts.tsx +++ b/src/components/modules/posts/TopThreePosts.tsx @@ -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);