Template
31 lines
642 B
JavaScript
31 lines
642 B
JavaScript
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;
|