# environment

{% hint style="info" %}
#### Experimental Feature

This configuration entry is related to an Experimental (Optional) feature called Virtual Environment. Before you start to configure this section, make sure to read the page specific for this feature (accessible [here](../../optional-features/cli-utilities/virtual-environment)) and [this](../../concepts/experimental-features) page that explains how to enable Experimental Features.
{% endhint %}

### Type: Promise\<void>

<details>

<summary>Versioning History</summary>

**API Version v2.0.0** - Introduced `environment` configuration option.

</details>

Configure the environment that Prisma is going to use. In this function, you can mutate the environment however you want: import files using [useEnv](../../../modules/schema-creator/api-documentation#useenv-path-string), change the environment using `process.env` or run other logic. To configure your virtual environment, add these lines to your configuration object:

{% code title="prisma-util.config.mjs" %}
```javascript
export default {
    // Other configuration lines
    environment: async () => {
        // Your environment logic
    }
};
```
{% endcode %}
