Error thrown when attempting to use presign on an adapter that does not support presigned URLs.
Checking for presign support
Checking for presign support
import { Storage, createMemory, StoragePresignNotSupported } from "@anabranch/storage"; const storage = await Storage.connect(createMemory()).run(); try { const url = await storage.presign("file.txt", { expiresIn: 3600 }).run(); console.log(url); } catch (error) { if (error instanceof StoragePresignNotSupported) { console.log("Presigned URLs not supported by this adapter"); } }
name: string