Forest new agent - environement


in the index.js file there is index.js

const agent = createAgent({
  // Security tokens
  authSecret : process.env.FOREST_AUTH_SECRET,
  envSecret : process.env.FOREST_ENV_SECRET,

  // Make sure you set NODE_ENV to 'production' when you deploy your project
  isProduction : process.env.NODE_ENV === 'production',

  // Autocomplete collection and field names
  typingsPath : './typings.ts',
  typingsMaxDepth : 5,
}) ;
 isProduction : process.env.NODE_ENV === 'production',

What exactly is it used for?
Thanks in advance


  • Project name: Nostrum Care v3
  • Team name: Op
  • Environment name: Development
  • Agent (forest package) name & version:
    @forestadmin/agent”: “^1.0.0”,
    @forestadmin/datasource-sequelize”: “^1.5.21”,
    @forestadmin/datasource-sql”: “^1.0.0”,
  • Database type: Postgresql
  • Recent changes made on your end if any: Adding a new datasource

Hello @jacques_liao :wave:,

This is use to know if this agent is a production. :slight_smile: In some cases, production has different processes, like for example the management of the debug logs, …

I hope I’ve helped you :pray:

Kind regards,


OK, got it! Thanks! :+1: