teqo/scripts
Francisco Ignácio Fontoura Solla bcb6c6c014 Make posts seed idempotent against the shared Vercel Blob store
The Vercel Blob store is shared across environments and the
@payloadcms/storage-vercel-blob plugin uploads via put() without
allowOverwrite (and exposes no option to enable it). Cover images left
under the deterministic <slug>.<ext> key by an earlier run therefore made
the prod seed abort with "This blob already exists" on the first upload.

Delete any orphan blob at that key (via @vercel/blob del, idempotent) right
before creating a new media doc, so uploads are deterministic and the seed
stays re-runnable. Existing media rows are still reused, so no duplicate
media is created.
2026-07-15 21:18:16 -03:00
..
db-pull.mjs Isolate local/dev and tests from the production database 2026-07-15 13:52:30 -03:00
guard-dev-db.mjs Isolate local/dev and tests from the production database 2026-07-15 13:52:30 -03:00
seed-loader.mjs Add Post and Tag collections for news and publications 2026-07-15 19:12:11 -03:00
seed-posts.mjs Make posts seed idempotent against the shared Vercel Blob store 2026-07-15 21:18:16 -03:00