Skip to content

Commit 37f09b0

Browse files
committed
fix(ipx): nuxtContext is optional
fixing test mocks
1 parent ceb4ad8 commit 37f09b0

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/runtime/providers/ipx.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ export const getImage: ProviderGetImage = (src, { modifiers = {}, baseURL } = {}
2626
const params = operationsGenerator(modifiers) || '_'
2727

2828
if (!baseURL) {
29-
baseURL = joinURL(ctx.nuxtContext.base || '/', '/_ipx')
29+
baseURL = joinURL(ctx.nuxtContext?.base || '/', '/_ipx')
3030
}
3131

3232
return {

0 commit comments

Comments
 (0)