Skip to content

Commit 2f62c05

Browse files
committed
fix: provide default ipx opts earlier
1 parent 955386a commit 2f62c05

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/runtime/ipx.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,9 @@ import { eventHandler, lazyEventHandler } from 'h3'
55
import { useRuntimeConfig } from '#imports'
66

77
export default lazyEventHandler(() => {
8-
const opts = useRuntimeConfig().ipx
8+
const opts = useRuntimeConfig().ipx || {}
99
const ipxOptions = {
10-
...(opts || {}),
10+
...opts,
1111
// TODO: Switch to storage API when ipx supports it
1212
dir: fileURLToPath(new URL(opts.dir, import.meta.url))
1313
}

0 commit comments

Comments
 (0)