chore: update docker-compose configuration for improved volume management and add optimizations in next.config.js for Docker development
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user