From 68c89e21d3f6a3e2e43b2e0f1497204cc5a10587 Mon Sep 17 00:00:00 2001
From: parsa aghaei
Date: Tue, 1 Oct 2024 10:04:00 +0330
Subject: [PATCH] aboutme fetch updated
---
.../(website)/components/about-me/aboutMe.tsx | 11 +++++++----
src/app/(routes)/blog/components/home/new/new.tsx | 8 ++++----
2 files changed, 11 insertions(+), 8 deletions(-)
diff --git a/src/app/(routes)/(website)/components/about-me/aboutMe.tsx b/src/app/(routes)/(website)/components/about-me/aboutMe.tsx
index d7c6fd6..873520d 100644
--- a/src/app/(routes)/(website)/components/about-me/aboutMe.tsx
+++ b/src/app/(routes)/(website)/components/about-me/aboutMe.tsx
@@ -25,10 +25,13 @@ type AboutMeDataType = {
};
export default async function AboutMe() {
- const response = await fetch(`${process.env.NEXT_PUBLIC_API_URL}/about-me`, {
- cache: "no-store", // غیرفعال کردن کش
- });
- const aboutMeData: AboutMeDataType = await response.json();
+ const aboutMeData: AboutMeDataType = await fetch(
+ `${process.env.NEXT_PUBLIC_API_URL}/about-me`,
+ {
+ cache: "no-store", // غیرفعال کردن کش
+ },
+ ).then((res) => res.json());
+
return (
-
BY
-
AUTHOR NAME
-
IN
-
CATEGORY
+
BY
+
AUTHOR NAME
+
IN
+
CATEGORY
How to accept rejection gracefully — and use it to grow