sharp cache limit ekle - RAM optimizasyonu
This commit is contained in:
@@ -0,0 +1,8 @@
|
|||||||
|
// instrumentation.ts (proje kök dizini)
|
||||||
|
export async function register() {
|
||||||
|
if (process.env.NEXT_RUNTIME === 'nodejs') {
|
||||||
|
const sharp = require('sharp');
|
||||||
|
sharp.cache({ memory: 50, files: 20, items: 100 }); // varsayılan çok daha yüksek
|
||||||
|
sharp.concurrency(2); // paralel işlem thread sayısını sınırla
|
||||||
|
}
|
||||||
|
}
|
||||||
Generated
+693
-142
File diff suppressed because it is too large
Load Diff
+2
-1
@@ -17,7 +17,8 @@
|
|||||||
"postgres": "^3.4.9",
|
"postgres": "^3.4.9",
|
||||||
"react": "19.2.3",
|
"react": "19.2.3",
|
||||||
"react-dom": "19.2.3",
|
"react-dom": "19.2.3",
|
||||||
"resend": "^6.12.3"
|
"resend": "^6.12.3",
|
||||||
|
"sharp": "^0.35.3"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@tailwindcss/postcss": "^4",
|
"@tailwindcss/postcss": "^4",
|
||||||
|
|||||||
Reference in New Issue
Block a user