We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4eb1965 commit 2079b6aCopy full SHA for 2079b6a
src/runtime/server/utils/blob.ts
@@ -335,7 +335,7 @@ export function hubBlob(): HubBlob {
335
}
336
337
if (prefix) {
338
- pathname = joinURL(prefix, pathname)
+ pathname = joinURL(prefix, pathname).replace(/\/+/g, '/').replace(/^\/+/, '')
339
340
341
const httpMetadata: Record<string, string> = { contentType }
@@ -375,7 +375,7 @@ export function hubBlob(): HubBlob {
375
pathname = joinURL(dir === '.' ? '' : dir, `${slugify(filename)}${ext}`)
376
377
378
379
380
381
0 commit comments