29 lines
620 B
JavaScript
29 lines
620 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
|
|
turbopack: {
|
|
rules: {
|
|
"*.svg": {
|
|
loaders: ["@svgr/webpack"],
|
|
as: "*.js",
|
|
},
|
|
},
|
|
},
|
|
// Optimisation du cache en dev
|
|
onDemandEntries: {
|
|
maxInactiveAge: 25 * 1000,
|
|
pagesBufferLength: 2,
|
|
},
|
|
};
|
|
|
|
module.exports = nextConfig;
|