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 <noreply@anthropic.com>
This commit is contained in:
dexx
2026-06-05 22:00:33 +03:00
parent 34eb42bb09
commit ea273a4ac4
+2 -2
View File
@@ -25,7 +25,7 @@ export const storageMode = hasBlobToken() ? "Vercel Blob" : "Local file";
export async function readCards(): Promise<BoardCard[]> {
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
});