# Forest new agent - environement

**URL:** <https://community.forestadmin.com/t/forest-new-agent-environement/6727>\
**Category:** Help me!\
**Tags:** howtos, setup\
**Created:** [October 4, 2023, 3:21pm UTC](https://community.forestadmin.com/t/forest-new-agent-environement/6727 "2023-10-04T15:21:50Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![jacques\_liao](https://dub1.discourse-cdn.com/flex013/user_avatar/community.forestadmin.com/jacques_liao/32/3723_2.png) [@jacques\_liao](https://community.forestadmin.com/u/jacques_liao)\
**Post date:** [October 4, 2023, 3:21pm UTC](https://community.forestadmin.com/t/forest-new-agent-environement/6727/1 "2023-10-04T15:21:50Z")

</div>

Hello,

in the index.js file there is index.js

```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,
}) ;

```

```js
 isProduction : process.env.NODE_ENV === 'production',

```

What exactly is it used for?  
Thanks in advance

## Context

- 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

---

<div class="post-metadata">

**Author:** ![Florian\_Gonzales](https://dub1.discourse-cdn.com/flex013/user_avatar/community.forestadmin.com/florian_gonzales/32/5541_2.png) [@Florian\_Gonzales](https://community.forestadmin.com/u/Florian_Gonzales)\
**Post date:** [October 5, 2023, 8:41am UTC](https://community.forestadmin.com/t/forest-new-agent-environement/6727/2 "2023-10-05T08:41:45Z")

</div>

Hello @jacques_liao 👋,

This is use to know if this agent is a [production](https://docs.forestadmin.com/documentation/reference-guide/how-it-works/environments). 🙂 In some cases, production has different processes, like for example the management of the debug logs, …

I hope I’ve helped you 🙏

Kind regards,

Florian

---

<div class="post-metadata">

**Author:** ![jacques\_liao](https://dub1.discourse-cdn.com/flex013/user_avatar/community.forestadmin.com/jacques_liao/32/3723_2.png) [@jacques\_liao](https://community.forestadmin.com/u/jacques_liao)\
**Post date:** [October 5, 2023, 12:35pm UTC](https://community.forestadmin.com/t/forest-new-agent-environement/6727/3 "2023-10-05T12:35:29Z")

</div>

OK, got it! Thanks! 👍
