addRandomSuffix now default in vercel-blob
This commit is contained in:
parent
1f4f772ab9
commit
26a8dd2d0a
@ -22,8 +22,7 @@ export const vercelBlobUploadFromClient = async (
|
||||
): Promise<string> =>
|
||||
upload(
|
||||
fileName,
|
||||
file,
|
||||
{
|
||||
file, {
|
||||
access: 'public',
|
||||
handleUploadUrl: PATH_API_VERCEL_BLOB_UPLOAD,
|
||||
},
|
||||
@ -34,10 +33,7 @@ export const vercelBlobPut = (
|
||||
file: Buffer,
|
||||
fileName: string,
|
||||
): Promise<string> =>
|
||||
put(fileName, file, {
|
||||
addRandomSuffix: false,
|
||||
access: 'public',
|
||||
})
|
||||
put(fileName, file, { access: 'public' })
|
||||
.then(({ url }) => url);
|
||||
|
||||
export const vercelBlobCopy = (
|
||||
@ -48,10 +44,7 @@ export const vercelBlobCopy = (
|
||||
copy(
|
||||
sourceUrl,
|
||||
destinationFileName,
|
||||
{
|
||||
access: 'public',
|
||||
addRandomSuffix,
|
||||
},
|
||||
{ access: 'public', addRandomSuffix },
|
||||
)
|
||||
.then(({ url }) => url);
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user