Template
24 lines
634 B
JavaScript
24 lines
634 B
JavaScript
/** @type {import('next').NextConfig} */
|
|
const nextConfig = {
|
|
outputFileTracingRoot: process.cwd(),
|
|
reactStrictMode: true,
|
|
images: {
|
|
unoptimized: true,
|
|
remotePatterns: [
|
|
{ protocol: 'https', hostname: 'images.unsplash.com' },
|
|
{ protocol: 'https', hostname: 'cdn.shopify.com' },
|
|
{ protocol: 'https', hostname: '**.frontend.co' },
|
|
],
|
|
},
|
|
webpack: (config, { isServer }) => {
|
|
config.cache = { type: 'memory' };
|
|
if (isServer) {
|
|
config.optimization = config.optimization || {};
|
|
config.optimization.splitChunks = false;
|
|
}
|
|
return config;
|
|
},
|
|
};
|
|
|
|
export default nextConfig;
|