Files
shopify-template/next.config.js
T
Rami BitarandClaude Opus 5 70ebd65a18 Disable the image optimizer again
Restore images.unoptimized so <Image> renders as a passthrough. The
next/image call sites stay as they are; they simply serve the original
Shopify URLs rather than routing through /_next/image.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_015uSQQNWrmiYDRW9L9VnsGC
2026-08-08 17:57:17 -04:00

34 lines
774 B
JavaScript

export default {
reactStrictMode: true,
typescript: {
ignoreBuildErrors: true,
},
images: {
unoptimized: true,
remotePatterns: [
{
protocol: 'https',
hostname: 'images.unsplash.com',
},
// Covers cdn.shopify.com plus any other Shopify-hosted image subdomain.
{
protocol: 'https',
hostname: '**.shopify.com',
},
{
protocol: 'https',
hostname: '**.frontend.co',
},
],
},
experimental: {
reactDebugChannel: false
},
webpack: (config, { isServer }) => {
config.cache = { type: "memory" };
if (isServer) {
config.optimization = config.optimization || {};
config.optimization.splitChunks = false;
} return config;
}
};