chore: update docker-compose configuration for improved volume management and add optimizations in next.config.js for Docker development

This commit is contained in:
Julien Froidefond
2025-10-16 14:50:03 +02:00
parent ef4de29282
commit 9ecdd72804
2 changed files with 26 additions and 2 deletions

View File

@@ -9,6 +9,22 @@ const nextConfig = {
},
// 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;