Next/image error in production
Unanswered
Peterbald posted this in #help-forum
PeterbaldOP
I load images in my website from my notion via the notion apis, but after few days the image stops loading and I get a 502 bad gateway error. What is causing this? I've updated to the
sharp package as well, still gives the same error4 Replies
@Peterbald I load images in my website from my notion via the notion apis, but after few days the image stops loading and I get a 502 bad gateway error. What is causing this? I've updated to the `sharp` package as well, still gives the same error
just to check, have you added the url and pathname to remotePatterns in your next.config: https://nextjs.org/docs/app/building-your-application/optimizing/images#remote-images
European sprat
Show your config with how you've set the remote options
@European sprat Show your config with how you've set the remote options
PeterbaldOP
/** @type {import('next').NextConfig} */
const nextConfig = {
reactStrictMode: true,
};
module.exports = {
nextConfig,
images: {
domains: ["s3.us-west-2.amazonaws.com", "raw.githubusercontent.com"],
},
};