Files
nextjs-chat-gpt/next.config.js
T
2026-09-14 19:49:51 -04:00

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;