diff --git a/src/app/(routes)/(website)/layout.tsx b/src/app/(routes)/(website)/layout.tsx index 71ab4b2..5a1fd2d 100644 --- a/src/app/(routes)/(website)/layout.tsx +++ b/src/app/(routes)/(website)/layout.tsx @@ -14,7 +14,7 @@ export const metadata: Metadata = { default: "parsa aghayi", }, description: "parsa aghayi's personal website", - images: ["/og-image?text=parsa aghayi's personal website"], + images: [`${process.env.NEXT_PUBLIC_FRONT_URL}/og-image?text=parsa aghayi's personal website`], }, }; diff --git a/src/app/(routes)/(website)/page.tsx b/src/app/(routes)/(website)/page.tsx index ecfc9f8..71fca64 100644 --- a/src/app/(routes)/(website)/page.tsx +++ b/src/app/(routes)/(website)/page.tsx @@ -16,7 +16,7 @@ export const metadata: Metadata = { title: "parsa aghayi's personal website", description: "Hi, I am parsa aghayi. Frontend & Backend Developer and here is my personal website to know me and contact me if you want! ;)", - images: ["/images/profile.png"], + images: [`${process.env.NEXT_PUBLIC_FRONT_URL}/images/profile.png`], }, }; diff --git a/src/app/(routes)/(website)/projects/page.tsx b/src/app/(routes)/(website)/projects/page.tsx index b922c05..c6c9822 100644 --- a/src/app/(routes)/(website)/projects/page.tsx +++ b/src/app/(routes)/(website)/projects/page.tsx @@ -6,7 +6,7 @@ export const metadata: Metadata = { openGraph: { title: "parsa aghayi personal website projects page title", description: "parsa aghayi personal website projects description", - images: ["/og-image?text=parsa aghayi's projects"], + images: [`${process.env.NEXT_PUBLIC_FRONT_URL}/og-image?text=parsa aghayi's projects`], }, }; diff --git a/src/app/(routes)/blog/categories/page.tsx b/src/app/(routes)/blog/categories/page.tsx index 6aa550f..9cf67fb 100644 --- a/src/app/(routes)/blog/categories/page.tsx +++ b/src/app/(routes)/blog/categories/page.tsx @@ -17,7 +17,7 @@ export const metadata: Metadata = { title: "All Categories List", description: "Browse through our collection of categories to find posts on your favorite topics. Whether you`re looking for insightful articles, how-tos, or the latest trends, our categories make it easy to discover content tailored to your interests.", - images: ["/og-image?text=All Categories List"], + images: [`${process.env.NEXT_PUBLIC_FRONT_URL}/og-image?text=All Categories List`], }, }; diff --git a/src/app/(routes)/blog/filtered-posts/[filter]/page.tsx b/src/app/(routes)/blog/filtered-posts/[filter]/page.tsx index a1e2f76..65e90e0 100644 --- a/src/app/(routes)/blog/filtered-posts/[filter]/page.tsx +++ b/src/app/(routes)/blog/filtered-posts/[filter]/page.tsx @@ -15,7 +15,7 @@ export const metadata: Metadata = { openGraph: { title: "", description: "", - images: ["/og-image?text=filtered posts"], + images: [`${process.env.NEXT_PUBLIC_FRONT_URL}/og-image?text=filtered posts`], }, }; diff --git a/src/app/(routes)/blog/layout.tsx b/src/app/(routes)/blog/layout.tsx index 84c2b8d..8661420 100644 --- a/src/app/(routes)/blog/layout.tsx +++ b/src/app/(routes)/blog/layout.tsx @@ -14,7 +14,7 @@ export const metadata: Metadata = { default: "parsa aghayi's blog", }, description: "parsa aghayi personal blog", - images: ["/og-image?text=parsa aghayi's personal blog"], + images: [`${process.env.NEXT_PUBLIC_FRONT_URL}/og-image?text=parsa aghayi's personal blog`], }, }; diff --git a/src/app/(routes)/blog/page.tsx b/src/app/(routes)/blog/page.tsx index 42cb1d6..3ff7b4f 100644 --- a/src/app/(routes)/blog/page.tsx +++ b/src/app/(routes)/blog/page.tsx @@ -9,9 +9,9 @@ export default async function Blog() { latest_categories: []; most_viewed_posts: []; random_posts: []; - } = await fetch(`${process.env.NEXT_PUBLIC_BLOG_API_URL}/homepage`, { - cache: "no-store", - }).then((res) => res.json()); + } = await fetch(`${process.env.NEXT_PUBLIC_BLOG_API_URL}/homepage`).then( + (res) => res.json(), + ); return (