From 121d01de2a346c6a36879c7dd79b1e5d1e1b0254 Mon Sep 17 00:00:00 2001 From: Julien Froidefond Date: Sat, 6 Dec 2025 12:20:50 +0100 Subject: [PATCH] chore: update turbopack configuration in next.config.js and add postinstall script in package.json for improved build process --- next.config.js | 12 +++++------- package.json | 3 ++- 2 files changed, 7 insertions(+), 8 deletions(-) diff --git a/next.config.js b/next.config.js index 579295c..ddf0657 100644 --- a/next.config.js +++ b/next.config.js @@ -10,13 +10,11 @@ const nextConfig = { // 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', - }, + turbopack: { + rules: { + '*.svg': { + loaders: ['@svgr/webpack'], + as: '*.js', }, }, }, diff --git a/package.json b/package.json index e474bad..eadacdd 100644 --- a/package.json +++ b/package.json @@ -11,7 +11,8 @@ "reset-admin-password": "node scripts/reset-admin-password.mjs", "lint": "next lint", "typecheck": "tsc --noEmit", - "icons": "node scripts/generate-icons.js" + "icons": "node scripts/generate-icons.js", + "postinstall": "prisma generate" }, "dependencies": { "@prisma/client": "^6.17.1",