// intelaide-ecosystem.config.cjs
const { join } = require('path');

module.exports = {
  apps: [
    {
      name: 'intelaide-backend',
      // Use the absolute path to the entry file (server.js)
      script: join(__dirname, 'server.js'),
      cwd: __dirname,
//      interpreter: '/root/.nvm/versions/node/v22.14.0/bin/node', // adjust this if needed
      // You can remove node_args if unnecessary
      env: {
        DB_HOST: '127.0.0.1',
        PORT: 5002,
        DB_NAME: 'assist_hub',
        DB_USER: 'root',
        DB_PASS: 'mush',
        JWT_SECRET: 'my_super_securd_jwt_secrettt',
        JWT_EXPIRES_IN: '1h'
      }
    }
  ]
};

