Skip to content

Commit d6f3043

Browse files
authored
upgread vercel blob version (#409)
1 parent 7a6951a commit d6f3043

3 files changed

Lines changed: 7 additions & 7 deletions

File tree

package-lock.json

Lines changed: 5 additions & 5 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@
102102
"@mux/playback-core": "^0.31.4",
103103
"@next/env": "15.5.9",
104104
"@paralleldrive/cuid2": "^2.2.2",
105-
"@vercel/blob": "^0.27.0",
105+
"@vercel/blob": "^2.0.0",
106106
"chalk": "^4.1.2",
107107
"chokidar": "^4.0.3",
108108
"dash-video-element": "^0.3.1",

src/providers/vercel-blob/provider.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ async function putAsset(filePath: string, size: number, stream: ReadStream | Rea
8686
let blob;
8787
try {
8888
key = await createAssetKey(filePath, 'vercel-blob');
89-
blob = await put(key, stream, { access: 'public' });
89+
blob = await put(key, stream, { access: 'public', addRandomSuffix: true });
9090

9191
if (stream instanceof ReadStream) {
9292
stream.close();

0 commit comments

Comments
 (0)