/** @type {import('next').NextConfig} */ const nextConfig = { webpack: (config) => { config.resolve.fallback = { ...config.resolve.fallback, fs: false, }; return config; }, // Configuration pour améliorer la résolution DNS serverExternalPackages: ['dns'], // Optimisations pour Docker dev experimental: { turbo: { rules: { '*.svg': { loaders: ['@svgr/webpack'], as: '*.js', }, }, }, }, // Optimisation du cache en dev onDemandEntries: { maxInactiveAge: 25 * 1000, pagesBufferLength: 2, }, }; module.exports = nextConfig;