diff --git a/next.config.mjs b/next.config.mjs index 391174225..03bf1b3cc 100644 --- a/next.config.mjs +++ b/next.config.mjs @@ -7,6 +7,23 @@ const nextConfig = { // of also returning 410. Middleware already handles 301 → non-slash for // valid pages, so this flag lets 410 pages pass through unchanged. output: 'standalone', + images: { + // BUY-59983: allow /_next/image proxy to fetch upstream catalog image hosts. + // Without this allowlist every with an external src returns HTTP 400. + remotePatterns: [ + // Placeholder/fallback images rendered by comparison + US product components + { protocol: 'https', hostname: 'picsum.photos' }, + // Amazon product catalog images + { protocol: 'https', hostname: 'm.media-amazon.com' }, + { protocol: 'https', hostname: 'images-na.ssl-images-amazon.com' }, + // Shopee catalog images (Singapore + cross-region CDN) + { protocol: 'https', hostname: 'cf.shopee.sg' }, + { protocol: 'https', hostname: 's.shopee.sg' }, + { protocol: 'https', hostname: '**.shopee.sg' }, + // Unsplash stock imagery (used by some landing/hero assets) + { protocol: 'https', hostname: 'images.unsplash.com' }, + ], + }, distDir: '.next-deploy', async redirects() { return [