You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When using the default IPX provider, if you've customized the provider's baseURL and it doesn't include /_ipx somewhere in the path, the images are not prerendered when performing a static build.
I'm not intimately familiar with the codebase, but if there's a good way to either pass in the context that includes the current provider or some other good way of determining the provider, it seems like that could be used to determine if the ipxStatic.baseURL from the runtime config should be used.
Alternatively, since the prerender check is already hardcoded for /_ipx/, it might be sufficient to just check if there's a ipxStatic.baseURL in the runtime config and use that for the filter otherwise fallback to /_ipx/
The text was updated successfully, but these errors were encountered:
When using the default IPX provider, if you've customized the provider's
baseURL
and it doesn't include/_ipx
somewhere in the path, the images are not prerendered when performing a static build.nuxt.config.ts
It looks like the
/src/runtime/utils/prerender.ts
has hardcoded a filter looking for/_ipx/
which is what's causing this:image/src/runtime/utils/prerender.ts
Lines 4 to 12 in 244f37e
I'm not intimately familiar with the codebase, but if there's a good way to either pass in the context that includes the current provider or some other good way of determining the provider, it seems like that could be used to determine if the
ipxStatic.baseURL
from the runtime config should be used.Alternatively, since the prerender check is already hardcoded for
/_ipx/
, it might be sufficient to just check if there's aipxStatic.baseURL
in the runtime config and use that for the filter otherwise fallback to/_ipx/
The text was updated successfully, but these errors were encountered: