Relative Content

Tag Archive for node.jsexpressnrwl-nxnrwl

How do I create seperate env for each node service in a nx integrated monorepo?

I’m trying to build a nodejs (Express) monorepo using nx, and here I’m facing issues with env variables. I want to use the seperate env files for each service in a monorepo but it’s coming undefined if I use .env file inside the each service. But it is working when I keep the env files in root level of the monorepo. How do I use env for seperate repo ?