Files
backend/ecosystem.config.js
T
Alireza HassaniandCursor 73588db1c6 Keep product migrate from crashing the API on large image copies.
PM2 was restarting at 512MB while Sharp cached buffers, which returned 502 to the migrate UI after categories had already succeeded.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-08-30 15:02:40 +03:30

17 lines
278 B
JavaScript

module.exports = {
apps: [
{
name: 'meshkee-api',
script: 'dist/main.js',
cwd: __dirname,
instances: 1,
exec_mode: 'fork',
env: {
NODE_ENV: 'production',
},
max_memory_restart: '2G',
time: true,
},
],
};