Skip to content

fix(site): fetch renderer changelog instead of reading it off disk - #3542

Merged
diegomura merged 1 commit into
masterfrom
diegomura/deploy-site-vercel
Aug 27, 2026
Merged

fix(site): fetch renderer changelog instead of reading it off disk#3542
diegomura merged 1 commit into
masterfrom
diegomura/deploy-site-vercel

Conversation

@diegomura

Copy link
Copy Markdown
Owner

Vercel builds apps/site with that folder as the project root directory, so the sibling packages/renderer/CHANGELOG.md is not present at prerender time and /changelog failed the production build with ENOENT. This happens even with Include source files outside of the Root Directory enabled and the whole repo cloned.

getReleases now fetches the changelog from raw.githubusercontent.com instead of reading it off disk. Release dates still come from the npm registry, as before.

Side benefit: the page is served with revalidate: 86400 from the inner fetch, so a background regeneration in a lambda used to be a latent ENOENT too. Over the network it works in both places.

Verified on the preview deployment: build passes, all 97 pages generate, and /changelog renders real releases rather than an empty list.

馃 Generated with Claude Code

Vercel builds this app with apps/site as the root directory, so the
sibling packages/renderer/CHANGELOG.md is not there at prerender time
and /changelog failed the production build.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
@changeset-bot

changeset-bot Bot commented Aug 27, 2026

Copy link
Copy Markdown

鈿狅笍 No Changeset found

Latest commit: 2f64aa2

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@vercel

vercel Bot commented Aug 27, 2026

Copy link
Copy Markdown

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

Project Deployment Actions Updated (UTC)
react-pdf Ready Ready Preview Aug 27, 2026 10:56pm

@diegomura
diegomura merged commit e2c320d into master Aug 27, 2026
17 checks passed
@diegomura
diegomura deleted the diegomura/deploy-site-vercel branch August 27, 2026 23:05
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