From e09adc03c3602d44c01884e3f8f8b2d45f7ad539 Mon Sep 17 00:00:00 2001 From: parsaaghayi Date: Fri, 12 Jun 2026 23:21:56 +0330 Subject: [PATCH] fix: change SSR fetch URLs from 4000 to 4001 --- frontend/application/app/blog/[slug]/page.tsx | 2 +- frontend/application/app/blog/page.tsx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/frontend/application/app/blog/[slug]/page.tsx b/frontend/application/app/blog/[slug]/page.tsx index eea26d1..6c97103 100644 --- a/frontend/application/app/blog/[slug]/page.tsx +++ b/frontend/application/app/blog/[slug]/page.tsx @@ -5,7 +5,7 @@ import type { Metadata } from 'next'; async function getBlog(slug: string) { try { - const res = await fetch(`http://localhost:4000/api/blogs/${slug}`, { next: { revalidate: 60 } }); + const res = await fetch(`http://localhost:4001/api/blogs/${slug}`, { next: { revalidate: 60 } }); if (!res.ok) throw new Error('Failed to fetch blog'); const b = await res.json(); return { diff --git a/frontend/application/app/blog/page.tsx b/frontend/application/app/blog/page.tsx index bf46351..70d58e2 100644 --- a/frontend/application/app/blog/page.tsx +++ b/frontend/application/app/blog/page.tsx @@ -8,7 +8,7 @@ export const metadata: Metadata = { async function getBlogs() { try { - const res = await fetch('http://localhost:4000/api/blogs', { next: { revalidate: 60 } }); + const res = await fetch('http://localhost:4001/api/blogs', { next: { revalidate: 60 } }); if (!res.ok) throw new Error('Failed to fetch blogs'); const data = await res.json(); return data.map((b: any) => ({