From 1cedf24a65c5b8ef9b3a170c227806a307012e7f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20FAMIBELLE-PRONZOLA?= Date: Sat, 3 Jan 2026 11:59:42 +0400 Subject: [PATCH] chore: ajout de next.config --- next.config.js | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 next.config.js diff --git a/next.config.js b/next.config.js new file mode 100644 index 0000000..1281d30 --- /dev/null +++ b/next.config.js @@ -0,0 +1,13 @@ +/** @type {import('next').NextConfig} */ +const nextConfig = { + experimental: { + // Optimiser les imports pour réduire la mémoire + optimizePackageImports: ['@mui/material', '@mui/icons-material', '@emotion/react', '@emotion/styled'], + }, + // Réduire l'utilisation mémoire + compress: true, + // Désactiver les source maps en dev pour économiser la mémoire + productionBrowserSourceMaps: false, +} + +module.exports = nextConfig