Skip to content

Commit

Permalink
fix(ipx): nuxtContext is optional
Browse files Browse the repository at this point in the history
fixing test mocks
  • Loading branch information
pi0 committed Jun 21, 2022
1 parent ceb4ad8 commit 37f09b0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/runtime/providers/ipx.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ export const getImage: ProviderGetImage = (src, { modifiers = {}, baseURL } = {}
const params = operationsGenerator(modifiers) || '_'

if (!baseURL) {
baseURL = joinURL(ctx.nuxtContext.base || '/', '/_ipx')
baseURL = joinURL(ctx.nuxtContext?.base || '/', '/_ipx')
}

return {
Expand Down

0 comments on commit 37f09b0

Please sign in to comment.