Next.js Discord

Discord Forum

Page marked as static on earlier canary version of 14, now marked as dynamic on 14.2

Unanswered
Oriental posted this in #help-forum
Open in Discord
Avatar
OrientalOP
Page was marked as static on build output, now it's marked as dynamic. ISR caching seems to be working as intended on Vercel logs (using NEXT_PRIVATE_DEBUG_CACHE=1 to produce debug logs). I'm wondering if this is just a visual change on the build output? Can anyone confirm / deny that's the case?

Here's the layout for reference. getPosts is the call that makes it dynamic:

import { Header } from "./header";
import { getPosts } from "../get-posts";

export const revalidate = 60;

export default async function Layout({ children }) {
  const posts = await getPosts();

  return (
    <article className="text-gray-800 dark:text-gray-300 mb-10">
      <Header posts={posts} />
      {children}
    </article>
  );
}

0 Replies