Skip to content

web: fetch community stats at build time#775

Merged
robinbraemer merged 1 commit into
masterfrom
codex/build-time-community-stats
Jun 16, 2026
Merged

web: fetch community stats at build time#775
robinbraemer merged 1 commit into
masterfrom
codex/build-time-community-stats

Conversation

@robinbraemer

Copy link
Copy Markdown
Member

Summary

  • Fetch Discord member count and GitHub star count during the docs build.
  • Inject the fetched values through Vite define as __COMMUNITY_STATS__, with checked-in fallbacks.
  • Add focused Node tests for API response parsing and fallback behavior.

Test Plan

  • pnpm test
  • pnpm build

Notes

  • Discord uses the public invite endpoint with with_counts=true.
  • GitHub uses the repository stargazers_count field.

@cloudflare-workers-and-pages

cloudflare-workers-and-pages Bot commented Jun 16, 2026

Copy link
Copy Markdown

Deploying gate-minekube with  Cloudflare Pages  Cloudflare Pages

Latest commit: d559c60
Status: ✅  Deploy successful!
Preview URL: https://617d8a9e.gate-minekube.pages.dev
Branch Preview URL: https://codex-build-time-community-s.gate-minekube.pages.dev

View logs

@robinbraemer robinbraemer force-pushed the codex/build-time-community-stats branch from 3285878 to d559c60 Compare June 16, 2026 07:56
@robinbraemer robinbraemer merged commit 3e324dd into master Jun 16, 2026
9 checks passed
@robinbraemer robinbraemer deleted the codex/build-time-community-stats branch June 16, 2026 07:59
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