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
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user