• Home
  • Overview
  • Layout
  • Data fetching
  • Static
  • Metadata
  • Preview
  • RSC
  • Server Actions
  • Intercepting Routes
  • API Routes
  • Fonts
  • SSR
  • Next.js Logo
    13
  • Revalidate
  • No cache (no store)
  • POST default
  • POST without cache
import BuildInfo from '@/components/BuildInfo/BuildInfo';
import Doc from './doc.mdx';

const PostPage = async () => {
  const page = await fetch('https://gapi.storyblok.com/v1/api', {
    cache: 'no-cache',
    method: 'post',
    headers: { token: 'BjrSi2XTl43hcISQpKSwxgtt', version: 'draft' },
    body: JSON.stringify({
      query: `query {
        DynamicpageItem(id: "308604460") {
        name
        content {
           _uid
           component
           components
        }
      }
    }`,
    }),
  });

  const data = await page.json();

  return (
    <div className="blog">
      <Doc />
      <article>
        <BuildInfo />
        {JSON.stringify(data)}
      </article>
    </div>
  );
};

export default PostPage;
Built at: 2025-06-09T15:14:15.730Z
{
  "error": "Unauthorized"
}