Skip to content

ビルド時の Notion API 負荷を削減 - #200

Open
Riku-0801 wants to merge 1 commit into
mainfrom
fix/notion-build-rate-limit
Open

ビルド時の Notion API 負荷を削減#200
Riku-0801 wants to merge 1 commit into
mainfrom
fix/notion-build-rate-limit

Conversation

@Riku-0801

@Riku-0801 Riku-0801 commented Jun 5, 2026

Copy link
Copy Markdown
Collaborator

概要

  • npm run build 中の Notion DB 取得結果をキャッシュし、SSG 各ページで発生していた重複 DB スキャンを削減
  • Notion API 呼び出しにビルド時共有のレート制御を追加し、429 発生時は Retry-After に従ってリトライ
  • production build ごとにビルド専用の Notion DB キャッシュをクリアするスクリプトを追加

検証

  • npm run build が Notion の 429 エラーなしで成功
  • .next/cache/notion-build に DB スナップショットが 3 件生成されることを確認

@vercel

vercel Bot commented Jun 5, 2026

Copy link
Copy Markdown

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

Project Deployment Actions Updated (UTC)
jackweb Ready Ready Preview, Comment Jun 5, 2026 4:50pm

@Riku-0801 Riku-0801 changed the title Reduce Notion API load during builds ビルド時の Notion API 負荷を削減 Jun 5, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant