mirror of
https://github.com/fsolla/teqo.git
synced 2026-11-13 06:25:20 +00:00
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. |
||
|---|---|---|
| .. | ||
| db-pull.mjs | ||
| guard-dev-db.mjs | ||
| seed-loader.mjs | ||
| seed-posts.mjs | ||