Post

Next.js 로 만드는 블로그 프로젝트

Nextjs 이용한 블로그

blog

Eraser 이용한 도식화

깃허브 URL

깃허브 url

캡쳐

image

image

image

FETCH

fetch 함수를

방법1

fetch 를 사용해서

1
2
3
4
5
6
7
8
9
10
11
12
export Page = async () => {
  // 직접 무효화하기 전까지 Cache 된다.
  const data = await fetch("...", {
    cache: "force-cache"
  });

  // Cache 에 저장하지 않는다.
  const dynamicData = await fetch("https://...", {
    cache: 'no-store'
  })
  
}
This post is licensed under CC BY 4.0 by the author.