Using environment variables in nx based nodejs app
问题 I've setup a project with several nodejs and angular apps inside a nrwl/nx workspace. I'm trying to work with the environment files inside the nodejs apps. I've setup the import like this: import {environment} from './environments/environment'; Then I ran ng serve my-node-app and it shows the environment for non production. Now I tried to do ng serve my-node-app --prod to see how the app works with a production setup - but I get the error: Configuration 'production' could not be found in