what do you guys use for…

less than 1 minute read

what do you guys use for managing environment variables (in development)? dotenv seems like a no-go with the express plugin

Responses:

I’m using dotenv with my NestJS API, seems to work pretty straightforward. I think the only thing you need to take care is to load dotenv soon and run the .config method.

You keep the .env file at the root? Or with the app?

from 9.4.0 Nx will load root and app-specific .env .local.env files, if they exist, before launching any tasks

there’s also the option to use this before your commands: https://www.npmjs.com/package/env-cmd

Thanks

Do you know if that’s documented anywhere? I’m trying to figure out where I should have looked to see that

Updated: