-
Notifications
You must be signed in to change notification settings - Fork 93
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
Compatible with Next 13? #287
Comments
Running [email protected] here and found that
There instead of in I also had to add: images: {
disableStaticImages: true,
+ unoptimized: true,
}, To my next.config.js and use
All seems to working fine for me now :) FYI I'm using canary build |
It works for me in dev mode but not in build mode with Edit: Fixed it by using My const { withContentlayer } = require("next-contentlayer");
const withOptimisedImages = require("@hashicorp/next-optimized-images");
const nextConfig = {
output: "export",
images: {
disableStaticImages: true,
unoptimized: true,
},
};
module.exports = withContentlayer(
withOptimisedImages({
...nextConfig,
// responsive: {
// adapter: require("responsive-loader/sharp"),
// sizes: [320, 640, 960, 1200, 1800, 2400],
// placeholder: true,
// placeholderSize: 20,
// },
})
); |
I am not able to configure the package very well in Next 13, is it already compatible with this version?
The text was updated successfully, but these errors were encountered: