Repository navigation
[Fix] 어드민 수정이 바로 보이도록 데이터 조회 캐시 제거 - #254
Merged
Merged
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
This branch was successfully deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
#️⃣연관된 이슈
📝작업 내용
어드민에서 추가·수정·삭제한 데이터가 홈페이지에 바로 반영되도록 데이터 조회 캐시를 제거했습니다.
AS-IS
force-cache+revalidate: 604800(7일)/api/introductions):revalidate: 600(10분)/api/blogs):force-cache+revalidate: 3600(1시간)revalidateTag경로, 웹훅)가 없어 어드민에서 삭제해도 최대 7일 동안 이전 데이터가 보임TO-BE
cache: "no-store"로 변경/,/projects/meetup,/projects/corporate,/reviews/story,/sitemap.xml에dynamic = "force-dynamic"추가try/catch가 Next의 동적 전환 신호를 로그로 찍고 삼키던 문제(빌드 로그의 "Failed to fetch")를 막고, 빌드 때 정적 생성을 시도하지 않도록 명시generateStaticParams제거 (캐시를 쓰지 않아 미리 생성할 이유가 없음)확인
tsc,pnpm lint,pnpm build통과 (빌드 로그 fetch 오류 0줄)/,/archive,/projects/*,/reviews/story,/sitemap.xml모두 ƒ(요청마다 렌더링)스크린샷 (선택)
💬리뷰 요구사항(선택)
revalidate가 명시돼 있으면force-dynamic만으로는 캐시가 꺼지지 않아, 각 fetch에no-store를 직접 지정했습니다.