Skip to content

Commit

Permalink
chore(storage): up (enable nitro asyncContext)
Browse files Browse the repository at this point in the history
  • Loading branch information
smarroufin committed Jan 30, 2024
1 parent ba927e6 commit 3c81ba4
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion _nuxthub/server/utils/bucket.ts
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ export function useBlob (name: string = '') {
const query: Record<string, any> = {}
if (name) { query.name = name }

return $fetch<void>(`/api/_hub/bucket/${key}`, { baseURL: proxy, method: 'GET', query })
return $fetch<any>(`/api/_hub/bucket/${key}`, { baseURL: proxy, method: 'GET', query })
} else {
const bucket = useBucket(name)
const object = await bucket.get(key)
Expand Down
5 changes: 5 additions & 0 deletions nuxt.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,10 @@ export default defineNuxtConfig({
],
ui: {
icons: ['heroicons', 'simple-icons']
},
nitro: {
experimental: {
asyncContext: true
}
}
})

0 comments on commit 3c81ba4

Please sign in to comment.