Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 17 additions & 0 deletions next.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -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 <Image> 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 [
Expand Down