From ea273a4ac4e1b50f655ad6011b20a30a8a3722f7 Mon Sep 17 00:00:00 2001 From: dexx Date: Fri, 5 Jun 2026 22:00:33 +0300 Subject: [PATCH] Fix blob access mode for public store The new Vercel Blob store is public, so private access is not allowed. Switch cards read/write to public access. Co-Authored-By: Claude Opus 4.6 --- apps/api/src/store.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/api/src/store.ts b/apps/api/src/store.ts index 8ac31e4..5ad96dc 100644 --- a/apps/api/src/store.ts +++ b/apps/api/src/store.ts @@ -25,7 +25,7 @@ export const storageMode = hasBlobToken() ? "Vercel Blob" : "Local file"; export async function readCards(): Promise { if (hasBlobToken()) { try { - const result = await get(dataBlobPath, { access: "private" }); + const result = await get(dataBlobPath, { access: "public" }); if (!result?.stream) { return []; } @@ -52,7 +52,7 @@ export async function writeCards(cards: BoardCard[]) { if (hasBlobToken()) { await put(dataBlobPath, content, { - access: "private", + access: "public", contentType: "application/json", allowOverwrite: true });