chore: update turbopack configuration in next.config.js and add postinstall script in package.json for improved build process
This commit is contained in:
@@ -10,8 +10,7 @@ const nextConfig = {
|
||||
// Configuration pour améliorer la résolution DNS
|
||||
serverExternalPackages: ['dns', 'pino', 'pino-pretty'],
|
||||
// Optimisations pour Docker dev
|
||||
experimental: {
|
||||
turbo: {
|
||||
turbopack: {
|
||||
rules: {
|
||||
'*.svg': {
|
||||
loaders: ['@svgr/webpack'],
|
||||
@@ -19,7 +18,6 @@ const nextConfig = {
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
// Optimisation du cache en dev
|
||||
onDemandEntries: {
|
||||
maxInactiveAge: 25 * 1000,
|
||||
|
||||
@@ -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",
|
||||
|
||||
Reference in New Issue
Block a user