31 lines
655 B
JavaScript
31 lines
655 B
JavaScript
/** @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', 'pino', 'pino-pretty'],
|
|
// 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;
|