-
Notifications
You must be signed in to change notification settings - Fork 67
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
next-images support for Next12.x #87
Comments
I have not tried it with Next12 unfortunately. Could you please try it and in case it doesn't, we can think of a fix. |
here's part of my config that works @ESCxjl
I do see warning about using invalid config property since this plugin requires it top-level
|
The problem seems to be with this line of code: if (isServer) {
return `(require("next/config").default().serverRuntimeConfig.nextImagesAssetPrefix || '') + ${p}`;
} next/config.default() is deemed undefined and you cannot get .serverRuntimeConfig of undefined. I think that a workaround/temporary solution would be to pass the nextImagesAssetPrefix directly to the library (rather than try to access it off the serverRuntimeConfig it could be passed as an option/param to the "withImages" function. |
Can someone help me understand if next-images is supported in Next12?
The text was updated successfully, but these errors were encountered: