fix(docs): re-fetch Notra posts on every build + webhook trigger - #113
Merged
Merged
Conversation
apps/fumadocs/turbo.json turns off build caching for the docs app so each deploy re-runs the Notra fetch instead of serving a cached build. Otherwise a rebuild of the same commit can turbo-cache-hit and the blog never updates when new posts are published (only a forced no-cache build would pick them up). The refresh workflow also accepts a repository_dispatch "notra-published" event so a Notra publish webhook can trigger a near-instant rebuild, plus a daily safety net. Generated-By: PostHog Code Task-Id: b674afbd-54f5-4303-ac9f-edf84b4622af
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
Greptile SummaryThis PR makes the static Notra blog refresh more reliably. The main changes are:
Confidence Score: 5/5The changes are limited to docs build refresh configuration and a GitHub Actions workflow trigger. The modified files are small and scoped, with no application runtime or security-sensitive code paths changed.
What T-Rex did
Reviews (1): Last reviewed commit: "fix(docs): re-fetch Notra posts on every..." | Re-trigger Greptile |
This was referenced Jun 28, 2026
This branch was successfully deployed
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.
Follow-up to #110 so newly published Notra posts actually reach the live blog.
Problem
The blog is static. A rebuild of the same commit can hit the turbo/Vercel build cache and skip the Notra fetch, so a published post never appears (only a forced no-cache build picked it up).
Changes
fetch-notra-posts.ts. Verified: turbo reportscache bypass, force executingand the build re-fetches.repository_dispatch(notra-published) trigger so a Notra publish webhook can fire a near-instant rebuild, plus a daily safety-net rebuild. No-ops cleanly untilVERCEL_DEPLOY_HOOK_URLis set.To finish enabling hands-off auto-publish
Create a Vercel Deploy Hook (Settings -> Git -> Deploy Hooks, branch
main) and set it as theVERCEL_DEPLOY_HOOK_URLrepo secret; optionally point a Notra publish webhook at it (or at GitHubrepository_dispatch) for instant updates.Created with PostHog Code