Skip to content

feat: 대학 정보 캐시 재검증 API 추가#578

Merged
yoonc01 merged 3 commits into
mainfrom
feat/university-revalidate-api
Jun 25, 2026
Merged

feat: 대학 정보 캐시 재검증 API 추가#578
yoonc01 merged 3 commits into
mainfrom
feat/university-revalidate-api

Conversation

@yoonc01

@yoonc01 yoonc01 commented Jun 25, 2026

Copy link
Copy Markdown
Contributor

관련 이슈

  • 대학 지원 정보가 운영 중 계속 추가/수정되는데, university-web의 대학 목록/상세 페이지는 SSG 캐시를 사용하고 있어 배포 없이 최신 데이터가 바로 반영되지 않는 문제가 있었습니다.
  • 특히 새로 추가된 지원 가능 대학 상세 페이지는 빌드 시점에 생성된 경로가 아니면 접근이 어려워질 수 있었습니다.

작업 내용

  • POST /api/revalidate API를 추가했습니다.
    • REVALIDATE_SECRET 기반 인증을 적용했습니다.
    • Authorization: Bearer {secret} 또는 x-revalidate-secret 헤더를 지원합니다.
    • 전체 대학, 특정 홈대학, 특정 대학 경로 단위로 캐시 무효화가 가능하도록 했습니다.
  • 대학 상세 페이지의 dynamicParamstrue로 변경했습니다.
    • 빌드 이후 새로 추가된 대학 상세 페이지도 on-demand로 생성될 수 있도록 했습니다.
  • 주기 ISR은 적용하지 않고, 필요한 시점에 revalidate API를 호출하는 방식으로 유지했습니다.

사용 예시

curl -X POST "https://www.solid-connection.com/api/revalidate" \
  -H "Authorization: Bearer ${REVALIDATE_SECRET}" \
  -H "Content-Type: application/json" \
  --data '{"scope":"home-university","homeUniversity":"kyunghee"}'

@yoonc01 yoonc01 self-assigned this Jun 25, 2026
@yoonc01 yoonc01 added the feature New feature or request label Jun 25, 2026
@vercel

vercel Bot commented Jun 25, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
solid-connect-university-web Ready Ready Preview, Comment Jun 25, 2026 4:12pm
2 Skipped Deployments
Project Deployment Actions Updated (UTC)
solid-connect-web-admin Skipped Skipped Jun 25, 2026 4:12pm
solid-connection-web Skipped Skipped Jun 25, 2026 4:12pm

@coderabbitai

coderabbitai Bot commented Jun 25, 2026

Copy link
Copy Markdown

Warning

Review limit reached

@yoonc01, we couldn't start this review because you've reached your PR review rate limit.

More reviews will be available in 23 minutes and 34 seconds. Learn how PR review limits work.

Your organization has run out of usage credits. Purchase more credits in the billing tab to continue.

⌛ How to resolve this issue?

After more reviews become available, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

To avoid repeated limits, reduce automatic review volume by pausing incremental auto-reviews earlier, using label-based review opt-in, excluding WIP or generated PR titles, or requesting reviews manually when the PR is ready. If your team needs uninterrupted high-volume reviews, an organization admin can enable usage-based credits.

🚦 How do rate limits work?

CodeRabbit enforces per-developer PR review limits for each organization. Most developers receive the normal plan review availability.

For paid Pro and Pro+ PR reviews, CodeRabbit uses adaptive limits for sustained high-volume activity. When a developer's recent PR review activity reaches the 95th percentile or higher among CodeRabbit users, additional reviews become available more gradually as earlier reviews age out of the rolling window.

Please see our Fair Usage Limits Policy for further information.

ℹ️ Review info
⚙️ Run configuration

Configuration used: Repository UI

Review profile: CHILL

Plan: Pro

Run ID: 08c37173-3fe1-421a-b10f-a1485bc3f53b

📥 Commits

Reviewing files that changed from the base of the PR and between a1a2241 and debd87b.

📒 Files selected for processing (3)
  • README.md
  • apps/university-web/src/app/api/revalidate/route.ts
  • apps/university-web/src/app/university/[homeUniversity]/[id]/page.tsx
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch feat/university-revalidate-api

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 381041903f

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread apps/university-web/src/app/university/[homeUniversity]/[id]/page.tsx Outdated
@vercel vercel Bot temporarily deployed to Preview – solid-connect-web-admin June 25, 2026 16:11 Inactive
@vercel vercel Bot temporarily deployed to Preview – solid-connection-web June 25, 2026 16:11 Inactive
@yoonc01 yoonc01 merged commit 8c62ac6 into main Jun 25, 2026
13 checks passed
@yoonc01 yoonc01 deleted the feat/university-revalidate-api branch June 25, 2026 16:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

feature New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant