From b46eda54ba3dc9872f42de0163cb348ce9d1d665 Mon Sep 17 00:00:00 2001 From: hirokiwa Date: Tue, 30 Apr 2024 19:59:43 +0900 Subject: [PATCH] Export OtherBlogs component 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 c16a1d6..1cc94db 100644 --- a/src/app/post/[postId]/_components/OtherBlogs.tsx +++ b/src/app/post/[postId]/_components/OtherBlogs.tsx @@ -1,3 +1,5 @@ +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 4a57cbf..eb122a0 100644 --- a/src/app/post/[postId]/page.tsx +++ b/src/app/post/[postId]/page.tsx @@ -1,5 +1,3 @@ -export const dynamic = 'force-static'; - import Image from "next/image"; import autherIcon from './../../../../public/icon.png' import getBlog from './getBlog';