Merged
Conversation
After generating project pages, scan projects/ for any *.html whose
{owner}/{repo} no longer appears in repos.json and delete it. Also
removes the owner directory if it ends up empty.
Without this, removing a repo from data/repos.json leaves a stale
project page on the live site indefinitely. Concretely: Web3CZ/Web3Hermes
was removed from repos.json in PR #148 (account deleted on GitHub),
but hermesatlas.com/projects/Web3CZ/Web3Hermes still serves the
pre-removal HTML because Vercel hosts the committed file as static
content. The next build-pages run after this lands will clean it up
automatically.
Safe by construction: only deletes files within projects/{owner}/*.html
that are not in the canonical repos.json list. Local dev runs are fine
— stale pages from prior local-only experimentation get garbage-
collected too.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
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
After generating project pages, scan
projects/for any*.htmlwhose{owner}/{repo}no longer appears indata/repos.jsonand delete it. Removes the owner directory too if it ends up empty.Why
Without this, removing a repo from
data/repos.jsonleaves a stale project page on the live site indefinitely. Vercel hosts the committed HTML as a static file, so it survives every redeploy.Concrete case: PR #148 removed
Web3CZ/Web3Hermesfromdata/repos.json(account deleted on GitHub), but/projects/Web3CZ/Web3Hermesstill serves the pre-removal HTML.What it deletes
projects/{owner}/{repo}.htmlwhose{owner}/{repo}key is not inrepos.json.Safe by construction: only walks
projects/{owner}/*.htmland matches against the canonical list — won't delete unrelated files.Test plan
node -c)https://hermesatlas.com/projects/Web3CZ/Web3Hermesreturns 404 after the rebuild lands🤖 Generated with Claude Code