From 375fadcd01e544fc1ae484512c40c7a32a825dac Mon Sep 17 00:00:00 2001 From: hirokiwa Date: Tue, 30 Apr 2024 20:03:15 +0900 Subject: [PATCH] Export not only OtherBlogs component but post content page with force dynamic --- src/app/post/[postId]/_components/OtherBlogs.tsx | 2 -- src/app/post/[postId]/page.tsx | 2 ++ 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/app/post/[postId]/_components/OtherBlogs.tsx b/src/app/post/[postId]/_components/OtherBlogs.tsx index 1cc94db..c16a1d6 100644 --- a/src/app/post/[postId]/_components/OtherBlogs.tsx +++ b/src/app/post/[postId]/_components/OtherBlogs.tsx @@ -1,5 +1,3 @@ -export const dynamic = 'force-dynamic'; - import getAllBlogs from "@/functions/getAllBlogs"; import Link from 'next/link'; import SideBlogs from "./SideBlogs"; diff --git a/src/app/post/[postId]/page.tsx b/src/app/post/[postId]/page.tsx index eb122a0..f660ccb 100644 --- a/src/app/post/[postId]/page.tsx +++ b/src/app/post/[postId]/page.tsx @@ -1,3 +1,5 @@ +export const dynamic = 'force-dynamic'; + import Image from "next/image"; import autherIcon from './../../../../public/icon.png' import getBlog from './getBlog';