We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 955386a commit 2f62c05Copy full SHA for 2f62c05
1 file changed
src/runtime/ipx.ts
@@ -5,9 +5,9 @@ import { eventHandler, lazyEventHandler } from 'h3'
5
import { useRuntimeConfig } from '#imports'
6
7
export default lazyEventHandler(() => {
8
- const opts = useRuntimeConfig().ipx
+ const opts = useRuntimeConfig().ipx || {}
9
const ipxOptions = {
10
- ...(opts || {}),
+ ...opts,
11
// TODO: Switch to storage API when ipx supports it
12
dir: fileURLToPath(new URL(opts.dir, import.meta.url))
13
}
0 commit comments