Skip to content

fix(blob): treat missing assets as uploadable - #2

Merged
cekrauseee merged 1 commit into
mainfrom
codex/fix-blob-not-found
Sep 15, 2026
Merged

cekrauseee merged 1 commit into
mainfrom
codex/fix-blob-not-found

Conversation

@cekrauseee

Copy link
Copy Markdown
Owner

Problem

The first real publication run stopped when checking for an existing Blob asset. With the installed @vercel/blob version, BlobNotFoundError inherits the name Error, so the uploader did not recognize a missing asset and never reached the upload call.

Fix

  • detect the SDK's BlobNotFoundError class directly
  • keep missing assets as a normal first-upload path
  • add regression coverage for lookup followed by upload

Verification

  • npm run check passed: formatting, lint, typecheck, 28 tests, and note validation

Use the SDK BlobNotFoundError class when checking for existing assets so a fresh publication proceeds to upload. Add regression coverage for the missing-asset path.
@cekrauseee
cekrauseee merged commit f3e20d2 into main Sep 15, 2026
2 checks 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