Fix: stop fetching docs at Cloudflare build time#15
Open
initializ-mk wants to merge 1 commit intomainfrom
Open
Fix: stop fetching docs at Cloudflare build time#15initializ-mk wants to merge 1 commit intomainfrom
initializ-mk wants to merge 1 commit intomainfrom
Conversation
Cloudflare Pages builds run on shared IPs without GITHUB_TOKEN, hitting the 60/hr unauthenticated rate limit. The added sync:docs step made two extra api.github.com calls before fetch:skills and fetch:contributors, tipping the quota and causing both to silently fall back to defaults (only 4 skills shown on /hub, "—" star count in nav). Move the docs sync out of the build chain — the GitHub Actions workflow already runs it on docs/** changes. Un-gitignore the synced docs so the workflow's commits land in the repo and Cloudflare ships them as-is.
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.
Summary
The deployed site was missing skills on
/hub(only 4 fallback skills shown instead of 14) and the GitHub star count in the nav was—.Root cause: Cloudflare Pages builds run on shared IPs without
GITHUB_TOKEN. The newly-addedsync:docsstep makes 2 extraapi.github.comcalls beforefetch:skillsandfetch:contributors. That's enough to push past the 60/hour unauthenticated quota, after which both scripts silently fall back to empty/default data.Fix:
sync:docsfrom the build chain — the GitHub Actions workflow (sync-docs.yaml) already handles syncing docs onforgerepo updates.Test plan
/hubshows all 14 skills—sync-docsGitHub Actions workflow which commits and triggers a Cloudflare rebuild