> For the complete documentation index, see [llms.txt](https://prisma-util.gitbook.io/stable/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://prisma-util.gitbook.io/stable/api-documentation/configuration-reference/environment.md).

# 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](/stable/optional-features/cli-utilities/virtual-environment.md)) and [this](/stable/concepts/experimental-features.md) 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](/stable/modules/schema-creator/api-documentation.md#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 %}
