fix: resolve GitHub README 403 errors on project pages#238
Merged
just-be-dev merged 1 commit intomainfrom Mar 16, 2026
Merged
Conversation
Two issues prevented README content from rendering on project pages: 1. Missing User-Agent header on GitHub API requests. Cloudflare Workers' fetch doesn't set a User-Agent by default, and GitHub API requires one, returning 403 without it. 2. Project pages were prerendered at build time, but use getLiveEntry() which is designed for runtime fetching. Switched to server-side rendering (prerender = false) so READMEs are fetched fresh per request. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Deploying with
|
| Status | Name | Latest Commit | Preview URL | Updated (UTC) |
|---|---|---|---|---|
| ✅ Deployment successful! View logs |
just-be-dev | ae23308 | Commit Preview URL Branch Preview URL |
Mar 15 2026, 10:35 PM |
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
User-Agentheader to all GitHub API fetch calls in the readme loader -- Cloudflare Workers'fetchdoesn't set one by default, and GitHub API returns 403 without it[slug].astropage from prerendered to server-rendered (prerender = false) sogetLiveEntry()fetches READMEs at request time instead of failing at build timegetStaticPathswith dynamicgetEntrylookup for the now-SSR project pageTest plan
/projects/pex/renders the GitHub README content/projects/ccpm/,/projects/jexl/,/projects/webview/) also render/projects/side-project-saturday/,/projects/devtools-fm/) still workGenerated with Claude Code