Press n or j to go to the next uncovered block, b, p or k for the previous block.
| 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 | 1x | import type { NextConfig } from 'next';
const nextConfig: NextConfig = {
// Enable React strict mode
reactStrictMode: true,
// Set explicit project root to avoid lockfile confusion
outputFileTracingRoot: __dirname,
// Image optimization for MinIO and external sources
images: {
remotePatterns: [
{
protocol: 'http',
hostname: 'localhost',
port: '9000',
pathname: '/varjoliitokauppa-images/**',
},
{
protocol: 'https',
hostname: 'picsum.photos',
pathname: '/**',
},
{
protocol: 'https',
hostname: 'fastly.picsum.photos',
pathname: '/**',
},
],
formats: ['image/avif', 'image/webp'],
deviceSizes: [640, 750, 828, 1080, 1200, 1920],
imageSizes: [16, 32, 48, 64, 96, 128, 256, 384],
qualities: [75, 85, 90, 95],
minimumCacheTTL: 60,
},
// Suppress pg-native warning
webpack: (config) => {
config.externals = [...(config.externals || []), 'pg-native'];
return config;
},
};
export default nextConfig;
|