Skip to content

Keep replaced assets for seven days so open pages keep working - #2

Merged
nicu-chiciuc merged 2 commits into
mainfrom
nicu-retain-assets-seven-days
Oct 11, 2026
Merged

nicu-chiciuc merged 2 commits into
mainfrom
nicu-retain-assets-seven-days

Conversation

@nicu-chiciuc

@nicu-chiciuc nicu-chiciuc commented Oct 11, 2026 •

Copy link
Copy Markdown

Same branch as upstream get-convex/static-hosting#42. A push to this branch updates both PRs.

After a deployment, the component keeps replaced files for at least seven days, so pages that are already open can still load their scripts. A later upload deletes them.

Merge with a merge commit, not a squash, so the fork history still matches the upstream PR.

🤖 Generated with Claude Code


View with [code]smith Autofix with [code]smith
Need help on this PR? Tag @codesmith-bot with what you need. Autofix is disabled.

nicu-chiciuc and others added 2 commits October 2, 2026 19:37
Extract asset retention from PR convex#41 onto upstream main. Keep replaced component storage files until cleanup on a later upload after seven days, and serve the newest replaced non-HTML file when its path is absent from the live deployment.
deleteStorageFile already refuses to delete a file that retiredAssets
references, so cleanupPendingStorage and cleanupAbandonedStaging do not
need their own lookups. retiredAssets.storageId is required, so the guard
before queueing expired files was always true.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@nicu-chiciuc
nicu-chiciuc merged commit 59c3166 into main Oct 11, 2026
1 check passed
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